MRI uses RF wavelengths, which are measured in meters. Ultrasound waves are measured in fractions of a millimeter. Wavelength is not the relevant factor here.