It's an apples to oranges comparison. Solar panels don't provide power overnight for example, but people place a lot of value in being able to use power at night. Likewise the grid scales up and down to meet the demands placed on it which a basic solar setup (i.e. without batteries) can't do. Then there's reliability, transmission etc.