that's not entirely true. There are nonprofit medical providers and they are equally expensive as for-profits; and there are also in the US a handful of "extreme for-profit" medical providers which are considerably cheaper (without sacrificing quality).
Non-profit doesn't mean "we don't pay our staff, partners and suppliers market rate". It's entirely possible that non-profits contribute towards rising medical costs through the same mechanisms that for-profit entities do.