The answer is that you may buy electrical outlets that have been particularly made to withstand the elements. These are put through additional rigorous testing to ensure that they can withstand conditions like ultraviolet radiation or extreme cold.