Propose a good way to measure that. I tend to agree with you, but in so many companies, what you deliver often gets impacted by so many other decisions that the final 'value' of a project is minimal, but it's because of decisions outside your control.
If people only paid me based on the value they got out of what I delivered, many would find a way to weight the measuring to leave me short. "Hollywood accounting" springs to mind - blockbuster movies somehow lose money.
to your apple analogy... you might pay $1 whether you eat it or not, but if you had no intention of eating it you wouldn't buy it in the first place. You had some expectation of doing something with it - eating it, cooking it for yourself, cooking it in some other dish to sell to others, etc.
The few stints of contracting I have had, I knew close to 100% of the technologies I am working in. If not, I wouldn't bill for learning time.
So why should you get paid for hours that deliver no value? Or to make it a spectrum, why should you get paid a fixed rate for hours where you deliver less than the fixed rate of value?