Hospitals in Canada are mandated to use parking fees as a revenue source to supplement government funding. These revenues help hospitals provide their communities with programs and services.
In 2016, the Government of Ontario passed regulations to make hospital parking more affordable for patients and visitors. You can read more about Ontario's hospital parking mandate.