There's no such thing as absolute proof or "knowing", only degrees of belief. Yet we make decisions based on degrees of belief all the time.
There is very good reason to believe leafy vegetables are healthy based on oodles of medical evidence spanning decades.
The 2L of water never had evidence behind specifically that quantity, and was only a reasonable general guideline for men, with it well known that the requirements vary enormously from person to person.
edit:
To put it better, 2L of water a day as a good goal for the average person to shoot for is a public health message, it's not a clinical statement. There is a difference, in that public health advice needs to be easily digestible and not confuse people, even if it is leaving out nuance.
From the Mayo Clinic's site[0]:
You've probably heard the advice to drink eight glasses of water a day. That's easy to remember, and it's a reasonable goal.
Most healthy people can stay hydrated by drinking water and other fluids whenever they feel thirsty. For some people, fewer than eight glasses a day might be enough. But other people might need more.
[0] https://www.mayoclinic.org/healthy-lifestyle/nutrition-and-h...