Bathrooms are not the best place to store makeup as makeup should be stored at room temperature and bathrooms fluctuate in temperature quite a bit. Sometimes a bathroom is warm and at the perfect temperature for microbes to thrive and grow in your makeup.
Also, there’s a problem with cross-contamination because bathrooms have quite a bit of fecal bacteria which is more commonly known as gut bacteria. This can get into your makeup and contaminate it.