I note that while the RCCB is well broken, there doesn't seem to be a lot of heat distortion. The plastic case is still square and largely intact, but covered on black arc soot.
This leads me to the thought that whatever did this, it was most likely a short-duration high-intensity event. Possibly a lightning strike?
A few years back, I saw something similar where a 3-phase MCB-type isolator was similarly destroyed.
The cause was determined to be the set of tin-plated busbars which were fed by direct connection to the isolator, these separated by a ~8mm air gap.
Tin-plated copper grows metal whiskers out of the plated surface. When you get a forest of these whiskers growing between busbars, eventually something will allow them to touch, and when they do, you get something like photoflash going off. The enclosure got its insides liberally coated with black soot, the isolator got blown apart, but the upstream MCCB protecting the circuit was not fast enough to react and stayed untripped.