They don't have to and they don't always. I've asked for them not to as my passport is filling up again and I don't really want to pay the $85 for more pages. That got me a
in MCO but they complied. In PHL last week they didn't stamp it without my asking. Ditto in LAX last November. I've always had it stamped in NYC but haven't asked them not to.