In the ice cream and drowning example, what factor causes both increases?

Answer

Hot summer weather (Temperature)

Hot summer weather acts as a confounding variable; the heat causes more people to buy ice cream and simultaneously causes more people to swim, leading to correlated but not causally linked events.

In the ice cream and drowning example, what factor causes both increases?
relationshipmethodstatisticcorrelationcausation