Let's do some math. Let's say that it costs Tesla $100/kWh for batteries, and the cost for them between the base interior and the "partial premium" interior is $500 (2x power seats vs. manual, LED fog lamps, some cloth instead of alcantara lining, plastic rather than wood-veneer trim, and more speakers). They charge an extra $2k and it goes an extra 20mi at ~250Wh/mi, or $750 worth of extra batteries, so $1250 more. +$750 profit.
Autopilot is $3k, which with a 30-40% take rate is an average of +$1k profit.
Just these two options alone, and taking into account the take rate on AP - no upgraded wheels ($1,5k), no paint options (min. $1,5k), no black-and-white interior ($1k), no FSD ($5k) - raise the margin by around 5% over a base car.