Was it an assisted living facility (ALF) or a nursing home? Much harder to involuntarily discharge someone from a nursing home, although it happens (but is not allowed based on ability to pay or being a Medicaid supported payor - nursing homes have to take Medicaid). Being discharged from an ALF (usually to a nursing home) happens all the time, when people move towards needing 24/7 care, which ALFs usually don't provide.
Hope the following is helpful for some, as we've had a range of experiences taking care of the elderly, as my wife ended up being the primary caregiver (power of attorney) for her grandmother and both parents; I only did a little bit of the support detailed below, but have learned a bit through observation. Her grandmom had Alzheimer's (but was otherwise healthy) and was moved into an ALF when she was about 80. She stayed there for about 10 years and her savings was drained over the first few years, but they kept her there accepting her Medicaid (didn't cover all of it) until the end when they booted her when she became very difficult - fortunately, she died within a few weeks of that.
My wife's father moved into a continuing care facility, starting at the independent level, where he stayed for 7-8 years, but then he suffered from worsening dementia and was moved to the assisted living wing of the facility and was there for about a year. During that last year he had nearly continuous nursing coverage at $15K/month (he had the money) as he had become difficult and they told my wife they wanted to discharge him to a nursing home, but she fought it and they relented and then a few months later, he fell ill and died in the hospital.
And my wife's mother lived in a mental disability residential facility from the time she was about 60 until she died in her mid-80s, all paid by Medicaid (and a NJ program for such folks); she died from emphysema, fairly quickly, at the end. And "luckily" (I guess) my mom declined and died relatively quickly (cancer) over about 2 months in early 2020 when she was living with my sister, so there never was any facility involved.
Lastly, my dad is 90 and living in a CCF at the independent level (he's very sharp, still, but physically declining with diabetes and very poor eyesight) and they have an ALF there in case it gets to that point. He has a LTC policy and enough income from his pension/SS to pay for a standard nursing home should it come to that and he has a room reserved at one just in case.
If anyone is doing eldercare, don't forget that step, i.e., make sure the person you're responsible for (or will be in the future) has a spot reserved in an ALF and a nursing home should that person need it - sometimes waiting lists go out for a year or more and you don't want to be scrambling at that point.
There probably ought to be an eldercare thread on the board. A few useful links below...
https://www.forbes.com/health/senior-living/assisted-living-vs-nursing-homes/
https://www.agingcare.com/articles/can-assisted-living-kick-out-elderly-residents-138932.htm
https://www.medicaidplanningassistance.org/nursing-home-evictions/