https://www.cntraveler.com/story/new-tsa-approved-3-d-scanne...
The whole reason for the rule is that X-Ray machinery uses object density to help figure out what materials are inside your luggage.
(This is a gross simplification of a different article I read on this subject, don't trust me to be 100% accurate in my terminology)
Some airports have more advanced X-Ray machinery where it can be extremely accurate to the point where it can distinguish water and other liquids from explosives.
But in many/most airports, they just have to ban liquids because the machinery can't tell the difference between water and explosives.
It's a pretty simple and logical explanation, and I think the rules make some level of sense given the fact that there was an actual attempted security breach involved with making the rule in the first place.