Tesla is an energy (battery) company, Model S, X, III, and power wall are tools for them to sell more batteries.
They need to sell as many batteries as possible to increase the demand for the gigafactory, when the cost of battery comes down and Tesla has bigger edge of producing lower cost/high...