I worked at one company for the last 34 years of my career, during which time I mostly had increasing responsibility and respect. My last boss but one, several years before I was to retire, for reasons of her own which I’m still not sure about, started gradually cutting me out of anything new that I normally would have been involved in (my job was tech support for a large end user department, and she cut me out of Salesforce when it came in, which was a huge deal). By the time she left, I only had enough work to fill maybe 50% of my time. After she left, there was a reorg during which they forgot about me entirely, which I sweetly pointed out to the VP who issued the memo. The boss under whom I landed did not know or care who I was and never even so much as talked to me, when she came into our 2-person office to talk to my office-mate.
I had been going to wait until the end of the month of my 66th birthday to get full SS benefits, but I figured out I could afford not to, so I left 10 months early. Management couldn’t have cared less; in fact, they were happy because now they were saving my considerable salary, and my 9 months of accumulated sick leave was no longer on the books as a liability.
As for me, it felt like getting out of jail. I spent every day of those 10 months (and the ensuing 5+ years) feeling blessed to be rid of the place. It was actually a good place to work on balance, and I was lucky to have survived several waves of layoffs in the early aughts (I worked at a newspaper cum internet media site). But I was perceived as “old guard” I guess, since I still loved print, and was no longer particularly valued or welcome.
tl;dr version: they gently pushed me out, and so I went.