The concept of wizard towers seems to predate D&D, but has there been a functional reason for this added to D&D? I'm going to be using the answer specifically in 5e, but wizard towers transcend versions of the game so I don't believe this question is specific to 5e.
Is there a functional reason for wizards to use towers so often? Or is it just a cultural/traditional thing wizards do?
For clarification: Is there a first-party reference that explains why wizards often use towers?
For example: in one of the most popular 5e modules, Lost Mines of Phandelver, there is a wizard's tower in Thundertree.
I've found this old popular Reddit thread which mostly has some joke responses with a few references to potential historical sources of the concept of wizard towers, but nothing notable that is "functional" in the sense of aiding a wizard practically.
In an episode of Critical Role Campaign 2, the DM referenced the fact that a good number of spells require arcane circles in the ground and that this is why wizards lean towards towers. This is cool, but I can't find any references to this being the why and it doesn't really explain the need for any sort of height.
Some possible answers, if they were supported by sources, might be: they're particularly easy for wizards to create; they're particularly good for wizards to research magic; or the height advantage is a great complement to some class feature.
This question is not looking for speculation or historical reasons. Answers should directly quote a D&D book that gives a clear direct, or indirect, benefit to wizards for living in a tower.