To me, it seems quite evident, they need to reduce the spending for any reason, so they reduce the workforce. Nothing to do with useless employees. You can be shit at your job or very good, they will have a metric threshold telling them you need to go. Same at Twitter, Meta, Google, whatever.
Stop putting that on the employee who spent 3 months to get a job just to be told they wasn't useful. That's 'bad' managing all the way down, nothing to do with the employee, at all.