High revenue and profit are not relevant - employees cost money, so if company feels it could do without them, the layoffs happen. Low revenue and loss would be another reason for layoffs too, of course.