Sure, for a homeowner it doesn't make sense. But what about at grid scale when there isn't enough demand for that electricity?
What opportunity cost is there to NOT do it when the power would otherwise be wasted or generation capacity reduced? If anything, I'd say the opportunity cost is of not doing this with over generation on the grid/plant