The most likely culprit is some stinky build up, otherwise known as gunk or, if the drain hasn’t been used in a while, it could be a dry p-trap. Run a little water down infrequently used sinks or showers once a month to prevent odors.