There is often no logic to how it happens.
They say there is but not really.
A manager doesn’t like you, you’re gone.
You’re too old, you’re gone.
You’re too expensive, you’re gone.
You don’t hit targets, you’re gone.
You’re not sycophantic enough, bye.
They rearrange you’re department, nope.
You are too honest, get out.
My advice would be keep your head down, try to stand out a little but not too much. Leave before you get Senior because senior PTE aren’t appreciate. There is a two tier system between technical and management. Pick management because it’s always technical that have to take redundancy.