I've both worked as staff in a nursing home and had two grandparents move from in home care to nursing homes when their needs became too great to manage there.
For one; she was more coherent, calm and had social relationships with other women there who were also confused but were sharing the same routine. The other was able to have periods of coherence enough that she had some friendships where at home she'd been lonely and isolated. Both of them found the consistency of place and routine comforting and were less anxious than they had been at home, and liked that there were people around and things going on. One lived eight years in the home and the manager was an amazing lady who worked with us to advocate for her, in particular helping us sort medical care for her that we wouldn't have known how to get or had the contacts for.
As a member of staff, there are people awake, alert and around 24/7 who can make cups of tea, have a chat, walk around the hallways and soothe someone who's become confused. If someone's having a bad day and is abusive, aggressive, upset, it isn't personal. That person isn't your family and what they say doesn't upset or hurt you. I often saw family reduced to tears by someone having a bad moment of confusion, and with support they could walk away, have a cup of tea, come back half an hour later and the person would have forgotten all about it and be thrilled to see them. The residents' rooms and wings were also set up to be safe, it was organised so that they couldn't accidentally wander into kitchens or fall down steps or out of doors. We had some who wandered all the time they were awake and needed to pick up and handle and explore everything, I can't imagine how family could have kept them safe in a home environment.
It was the right choice for both my grandparents when they reached a certain stage of need. To be honest, with both, they would have been better moving there earlier before things became too hard at home, had there not been so much guilt for family members in reaching the decision.