
The same occurs with bathroom fan vents. If the hose is not installed with a pea trap there will be water that falls back down causing a stain. Shower pans that are also a source of leaks. As they age the mortar cracks and so does the shower pan. This is very common in older homes.
Skylights and solar tubes have seals that breakdown over time. The inside air temperature can escape to meet the outside temperature and condensation is created. See the photo below of a classic example of this situation.
When you see a water stain on your ceiling give the previous information some thought. You may save your self a service call by doing some basic steps to narrow down what type of contractor you need to fix the problem. Otherwise, give a local factory certified roofing contractor a call. A roofing company with trained technicians can help navigate where the water is coming from. A trained roofing contractor can help you find your way to the solution.