How is it legal for massive companies to be making sweeping layoffs and announcing stock buy backs at the same time?

Via Mastodon