Derived from French mirer, meaning to look at or examine in a reflective surface, with the suffix -age. The optical sense is attested in the eighteenth century, the figurative illusion soon after, and the egg-inspection sense later from the same idea of examining by light.