Because the cost that we are usually discussing is not actual cost ("how much I pay per kWh") but LCOE (levelized cost of energy), an indicator that models a cost from a very specific perspective - today investor's one, rather than from consumer or CO2 emissions. LCOE doesn't take into account that PV does *not* produce energy overnight, nor storage or smart grid. All the externalities are just left out here.