Why does natural gas smell like rotten eggs?

Because the smell is added so it can be detected. If natural gas smells like rotten eggs then it contains H2S or hydrogen sulfide. Actually the smell associated with rotten eggs is hydrogen sulfide, so hydrogen sulfide does not smell like rotten eggs, rotten eggs smell like hydrogen sulfide.