Sometimes RCDs do just trip when a switch is turned on or off. I don't think we really know why.
I also would like to know why, I had two RCD's feeding two Wylex fuse boxes with MCB's replacing the fuses, one RCD would trip, and on resetting it, the other would trip, also some times it would not reset unless all MCB's turned off, but would not trip when they were turned on again.
I did from time to time try and find a fault, and would get out the insulation tester, but no fault found, and it would seem to trip maybe 4 times in 2 weeks, then go for two years before next trip.
I think caused by spikes, either on the supply or due to switching some thing, there was no SPD fitted, and the RCD's were old, no type AC, A, F, B etc marked on them, and I think no electronics inside, I got them from work in the 90's second hand, so god knows how old. Still have a spare in a box, maybe I should break it open and see how it works?
New house all RCBO's so no longer an issue, but it seems odd,
I have an boiler on a separate circuit.
… and RCD trips. MCB is fine.
I can see how a separate circuit with a RCBO, but to have a RCD feeding only the boiler seems odd? I have seen this with a shower, but not a boiler, the word boiler is likely wrong, we often call things boilers when in fact they only heat the water, if they boiled it we would say it is faulty, but this means we have many items we loosely call boilers, I call my oil fired water heater a boiler, but the two real boilers in daily use I call kettles, but really are one cup boilers.
So can you explain exactly what you have, new RCD's are designed not to be affected by spikes, but old ones it seems are.