MAGCARGO’s shell is actually its skin that hardened as a result of cooling. Its shell is very brittle and fragile - just touching it causes it to crumble apart. This POKéMON returns to its original size by dipping itself in magma.
The shell on its back is just skin that has cooled and hardened. It breaks easily with a slight touch.