Hospital IT soaks in a special set of impossible choices.
Vendors lock them to insecure OSes and inflexible contracts. Regulations are equally inflexible. In general, security is in tension with providing patient care, especially in emergency situations. And all this stuff is super expensive, which means making do with old gear in a lot of places.
I am in no way defending incompetence. But the reality is grim.
Sorry but I was being unclear. The MRI machine's supplier designed it using Windows XP and they don't offer anything else. Sure it should be either airgapped or networked on some type of VLAN / quarantined by outside access but that's not my point.