Though sometimes the price the consumer pays isn't reflective of the true cost.
Sometimes the public health system does buy/subsidize the machine for the provider and a private client isn't charged some chunk of the amortized cost of the machine because the public system (rightly) assumes that 99% of the work is going to be for their residents. The clinic can profitably just charge for their professional/office use.
Here's a Bucharest Romania MRI clinic with tariffs: