It would be almost impossible for you to find a reasonable individual on this planet who would not get annoyed at the thought of their carpet getting wet, at least when it comes to people who are of sound mind. Most carpet owners will take extensive steps to create a situation wherein no amount of moisture would be able to come anywhere close to their rugs, but there is a pretty good chance that they would have to deal with some wetness sooner or later since we are rather limited in our ability to control events that are outside of our control.
If a storm were to break out that pounds rain against your window thereby allowing some of it to leak in, the truth of the situation is that much of this water would get soaked into your carpet. You should always hire carpet cleaning companies if your carpet got wet, and the sooner you do this the better it would be for you. This is because of the fact that a wet carpet will start to smell really stale and moldy, and it might even start growing mold if you are not proactive.
Some people assume that drying the water up will be enough to solve the situation once and for all, but the fact of the matter is that the bacteria and fungi that managed to grow in the moisture will still be there. They would try to propagate and grow, and only the very best carpet cleaning techniques would be able to make some headway in terms of removing them. Wet carpets are a no go if you care about their quality.