It’s not cool to force training on someone and then force them to stay or pay it back either. Why does the corporation get off the hook?
Also, the companies should get some sort of insurance. Not screw over individual powerless people.
It's also not cool to hire people when you know layoffs are coming, but employers do this all the time. But, as you say "just be a better company" is fantasy world belief.
My ex- had this, applied for a job. "We want someone who is going to be here for the long haul, five years plus." She had aspirations for vet school in the next year or two.
To you, that's a commitment from an employee that is fair to expect.
"Is the company committed to giving me a job for the next five years?" ... well, why not?
You're very much in the mindset of "an employee should be happy to have a job".
It's not cool to take free training if you know you will be out shortly.
The reason people go out can be anything, could be something silly like moving house.
"just be a better company" sounds like people live in a fantasy world