McDonalds, of course, is 5% corp-owned flagships and 95% franchise "opportunities". They don't have customers, they have tenant farmers who work the land leased to them.
So many parties either directly exploiting others or being able to do it by taking significant cuts of revenue for questionable value...
They literally can't cut staff because they only make money due to the incredibly high number of meals they serve per hour. So they have to serve as efficiently as possible, which requires that fully-staffed kitchen and counter, or there wouldn't be enough time in the mealtime hours to do that volume otherwise. It's just as impossible for them to cut any staff as an airline could remove pilots from the cockpit, in that the whole operation would cease to function.
McDonald's and the rest are never going to be In-N-Out though because it would take years of operating at steep losses in the hopes people would notice how fast and tasty they'd become. I can't think of a mature company that's ever pulled off going from "boring mainstream place" to "cult favorite" like that.
McDonalds chose to aggressively enshittify, In-N-Out did not. You're probably right that McDonalds will never be that again, I don't think they even want to. If you cut minimum wage in half today, they'd keep the same staffing levels and the franchise owners would pocket the difference.