Unless this action violated the terms of an employment contract or union agreement, it was legal. In an "at will" employment arrangement, a company can set the conditions of employment much as it sees fit. This includes who to fire and why. The fact is that, a worker can be terminated for any reason or no reason at all, absent some form of actionable discrimination being the reason.