It happens due to the presence of bacteria in the bathroom. Try to use germs and bacteria-killing substances to get rid of smells.