Been there, done that. Yikes! Did they give you a face mask to wear? After all, if they suspect you of having the disease without knowing if you're clear, the least they can do is give you a protective face mask in the interim.
FWIW, this was during the swine flu epidemic that started about five years ago. It was weird. Nobody wore masks. It was very unsanitary, as no one wanted to risk contact with infected patients and because of tubes, etc, we couldn't get up and clean themselves. They knew after one day I didn't have swine flu, but kept me there until they tried lots of other things until I had lung surgery for a lung that's been bad for decades (I thought it was normal). The other problem in quarantine is they had 100% control over medical decisions.
FWIW, if there's ever a quarantine situation, I would advise against getting medical care unless you're accompanied by someone to keep you out of forced quarantine.