How much should a mass air flow sensor cost me?

They probably said OEM: An automobile part may carry the designation OEM if it is made by the same manufacturer and is the original part used when building and selling the product. The term aftermarket is often used for non-OEM replacement parts.

Regardless, the mechanic probably charged you more for the part than he paid. Some non OEM parts are as good as or better than OEM, it can vary.