It is called a croque madame, as the fried egg on top is thought to resemble a woman's hat.