This kind of stuff is infuriating. I know of too many people in the same situation and there's never a truly legitimate reason given for wanting people in the office. A lot has to do with these companies that invested in commercial real estate and their fear that their investments will go south if people continue to work remotely, but they'd rather just say "We work better when we're all in close quarters with one another" or some nonsense.
I'm moving to a new project this month - this one is fully remote without any physical office to report to. I'm moving from another government organization that used to require us to be in the office five days a week prior to COVID, but now we're hybrid with loosely required two days of in-office per week (and that has been ticking up a little in the last six months). Really looking forward to knowing I'll never be asked to be in the office for some random meeting or something, and that I can pick and choose days to go work from my company office. Since my wife is a freelance editor, she's also at home and often just needs me out of her hair during the day.