Most of the microwave power does not deeply penetrate something like a whole ham. The microwaves are mostly absorbed by the outer layers and then the heat conducts through the inner portions.
The journal article below contains lots of detail. It claims that microwaves penetrate about 3.8 mm in cooked ham and 9.9 mm in cooked beef.