Why do farts smell like eggs?

because the both have sulfur in which makes them smell the same