Re: Dumb question time...
I suspect at least some of the difference is that you are comparing the price of "a LiFePO4 battery" against the price of "a single megapack", which is not just a battery; it is the packaging, connections and all the control and safety systems which are required to hook it up into a useful battery farm which can be attached to the national grid.
M.