I did qualify that this was not including labor and the other hardware and electronics needed for such a system.
The (relatively) high cost is most likely because of labor and (in my opinion) inflated hardware costs of battery and solar panels.
Labor is a massive expense and can't be discounted but one could imagine a solar panel "kit" that just includes the hardware that you can install yourself.
One could also imagine that the costs of labor being subsumed by a larger entity that can take advantage of economies of scale and provide solar energy like a "classic" energy company. I believe something like that is already happening in the region where I live (upstate New York, USA).
For places where labor might be cheaper, then total costs would also come closer to raw hardware costs.