RCD only trip if electricity goes "astray". Basically the look at the current going out on the L and coming back on the N, if they differ by more than a small amount (usually in the range of 0.015 to 0.030 amps) then they trip. As such they are intended to protect against electric shock, when often the person touches the L while in contact with the Earth and so some of the L current is not returning by the N as desired.Q Why didnt the RCD trip?
They can also protect against fires from partial cable faults when insulation is damaged and enough current flows to the CPC (earth wire, usually central in the flat "twin and earth" cable typically used in house wiring) to risk a fire starting, but not enough flows to trip the over-current protection device (these days normally a MCB = Miniature Circuit Breaker, but sometimes a fuse, when quick disconnection might need 100A or more fault current). Say crushed cable or rodent damage, even poor quality counterfeit cable.
Unfortunately they do not protect against overheating due to a poor connection. You can get AFDD (arc-fault detection devices) that are designed trip if the heating is caused by a tiny gap that is causing sparking (electrical arc) but they do will not pick up on a simple poor connection that is getting hot.
Quality parts and good workmanship, along with paying attention to any odd smells, sounds, or evidence of heating, are still the best defence for this particular problem!