Employees create your sales. If there's redundancy in job tasks then firing people can increase profits, but massive layoffs is mainly just reducing output capabilities.
few people to do work = few profits
In the span of a year or two this can increase profits because costs have gone down, but pretty soon the company will run out of its backlog and then profits will tank in a way that can't be recovered from for years