What are mirages and why they can be photographed

What are mirages and why they can be photographed