Isn't the Tesla Powerwall a fully integrated system with multiple MPPTs, inverter, and charger? (Maybe I'm confusing the new one with the older versions) I imagine that's where the cost comes in.
Where I live in Europe I can buy a lifepo4 cell for 97€ from a trusted supplier, 300Ah x 3.2V = almost a kWh. For a full battery you need to add the cost of a BMS and a balancer.