An
RCD detects an imbalance between the current flowing in the live conductor and the one flowing through the neutral.
If there is a difference it means that some current is flowing from live, or neutral, to somewhere else, probably to earth.
An
MCB detects too much current flowing in the live conductor, again this could be because of a live - earth or neutral - earth fault, or also because of a live - neutral fault (often commonly called a short circuit).
As it's possible that the path is from live to earth through a person, which is a Bad Thing, we want to break the circuit long before the person comes to any harm. The problem with MCBs is that they are designed to allow large currents to flow - your 40A one will actually allow 45A to flow indefinitely, and 58A for up to an hour. It won't trip quickly until about 200A flows.
Since 100mA is enough to kill someone pretty quickly, and even 50mA if it lasts more than a few seconds, relying on an MCB to save people from electrocution is futile, hence RCDs, which react quickly to very small imbalances of current because they might be passing through someone's body.
Your RCD socket should have a sensitivity of 30mA - does it say that anywhere?
Your MCB is tripping because far too much current is flowing.