It is optional, yes, but in the past, there were no internet based middlemen taking a 30% cut. You paid the local kid driving the pizza to your house, not some nameless software developer making 200k+ a year.
From a few years ago:
https://smallbusiness.chron.com/much-profit-margin-pizza-621...
Cost to make a pepperoni and sausage pizza: $1.90. Average sale price: $14.00.
I know rents are high in the Bay Area, but IIRC they're much higher in NYC?
Could be wrong, but that would be my guess.