Economics begins with a firm's most direct question: is producing one more unit worthwhile? Profit maximization focuses on marginal revenue and marginal cost, not simply total revenue or average cost. If the additional revenue from one more unit exceeds the additional cost, producing more can increase profit. Once marginal cost exceeds marginal revenue, further expansion reduces profit.
Breakeven and short-run shutdown are different decisions. A firm can have price below average total cost and still rationally continue operating if price remains above average variable cost, because each unit contributes toward fixed cost. If price cannot cover average variable cost, the case for shutdown becomes much stronger. “The firm is losing money” does not automatically mean “close immediately.”