It's the effect of the wavelength of far infrared light being quite a bit longer.
Think of a reduction to extremes: if you have a sensor that is a centimeter square and you're trying to 'catch' a wave that is a meter long there is a fair chance the sensor will be bypassed entirely, but if you are trying to catch millimeter waves your sensor will be easily able to capture the photons.
The most practical example of this effect is the size of radio antennae, they get longer as the wavelength gets longer.
MIRI works at longer wavelengths than NIRCam, so its angular resolution is lower (longer wavelengths mean more diffraction). It also has a smaller field of view.
Those two factors mean that it has fewer pixels per image.
https://webbtelescope.org/contents/media/images/2022/033/01G...