retiring

Companies can and do anything they want and for any reason. But you should be able to file an unemployment claim.
I'm being pushed out too, they want 35 year old people.
Congrats on your retirement!