there is reason in the roasting of eggs

Etymology
Attested since 17th century, according to the Oxford Books of Proverbs.

Proverb

 * 1) There is a reason behind even the most odd and seemingly unnecessary action.