(Stupid Lenovo touchpad just hit "submit" before I was done. Fortunately, it did it when the first part of the post was pretty clean. Reposing with the rest - unless it does it again B-b )
Why should you be paid retail for generation? That totally ignores the part the grid takes in handling your energy...
You also pay a monthly "be connected to the grid" fee, which pays your share of the ongoing expenses of maintaining the grid, along with a one-shot "get connected to the grid" fee, often amounting to thousands of dollars, which literally pays for installing the infrastructure - poles, drop transformer, etc - to bring the grid to you.
(When the contractor building my rural retirement house connected it to the grid, without my orders, I paid many thousands - money I'd intended for a solar system. Part of that was half the price of the existing transformer that I now shared with my next-door neighbor, who had paid the whole price and was now rebated half of it.)
Utilities are very good at dividing the service into appropriate chunks and billing you reasonably fairly for what you actually use. The bulk of the background costs are already covered (with the standard profit margin), so sellers to the grid are not so much the parasites you might think.
Net metering was a cheap hack - based on the common, low-end, pre-"smart" mechanical meters, which ran equally well forward and backward. It doesn't account for the losses in transmission - but (as was mentioned elsewhere) in the case of distributed generation the power doesn't travel very far, so the losses are far lower than those for power shipped from major power plants to widely distributed residences (and since much of those losses are proportional to the square of the currents, local generation reduces them more than in proportion). Billing a rate that doesn't vary by time of day is ALSO a hack based on those meters: Solar and wind tend to produce surplus power when it's expensive and have a shortage when it's cheap, so net metering (when few enough are using it to not substantially affect grid management) is actually a good deal for the power companies.
Having said that: With arbitrarily capable smart meters available a truly fair pricing scheme would involve some offset between the "buy" and "sell" prices - but the "buy at wholesale" level is far too low.
Utilities, though sometimes privately owned, are generally regulated monopolies with pricing schemes imposed by governments in the interests of their citizens. Attempting to apply free market arguments to them is disingenuous. We're dealing with Fascism, not Capitalism, here.