In Ben Bernanke's Macroeconomics, he says that according to the Keynesian view, in the short run, firms are (at least temporarily) willing to increase or decrease production to meet aggregate demand, leading to equilibrium in the short run. But then he writes
However, in another sense the goods market is not in equilibrium at point F. The problem is that, to meet the aggregate demand for goods at F, firms have to produce more output than their full-employment level of output, Y. Full-employment output, Y, is the level of output that maximizes firms’ profits because that level of output corresponds to the profit-maximizing level of employment
Why would firms be willing to temporarily employ more workers and increase their output if that decreases their profits?