Ahh, that confluence where capitalism intersects with socialism.
Did the workers build the company? Did the capital build the company by providing the pay to pay the workers?
Did the workers take any risks? Or did they sign an employment contract, and get paid the same every month regardless of performance? Their only risk, that the contract will end, perhaps unexpectedly [1]?
In the case of small private businesses (which of course the vast majority of businesses are) did the "Capitalist" worry about making payroll this month, get short paid when cash is short, try and predict the future, make tough decisions when things go wrong, and somehow be a human?
Of course the socialists believe the capitalists should keep those people hired forever (or better yet, not hire them to begin with?) - ironically that's what the capitalists want as well. But life happens and hard decisions have to be made.
[1] risk costs money. If you have one employer you are at risk. As much as you can, hedge this risk with liquid savings. This has been good advice for thousands of years. Most workers live so close to poverty that this is unattainable. However folks at (big tech whoever) have the means to do this AND get decent severance, so I'm not crying for them just yet.