Yeah I think this is the real point of a nursing home often times: making sure you can get medical care as you age.
Ability to tolerate and care for residents in severe mental and mobility decline are kind of the differentiator between a nursing home and other kinds of lodging.