Opportunity cost is like giving something away to gain the intended, so the cost has real use and purpose. So in the context of PPF (production possibility frontier) as it analyze the possibility of maximum output, the quantity of the gained goods measures up the opportunity cost.