They're not in jail. They can have themselves transferred home or to another hospital.
2 basic problems with your point.
A) IT’S COVID! OMG! OH NOES!!!! You’re dangerous to the outside world!
B) No advocates (visitors/relatives) allowed to help make that point and get her to leave - because A!