it's because terrorist sometimes tries to bring water into airport using bottles, for example, back 1999 someone thought it was a good idea to bring a motorcycle engine and a 750ml bottle into uni air 873
Still though, with that logic, they should check literally everything because what if there's a hidden compartment inside a book or something that holds something dangerous?