Nobody ever said they couldn’t, the only proscription is on “hot drinks,” which has been interpreted as “coffee and tea.” The anti-caffeine people are the “spirit of the law” people, and for decades, Coke sold caffeine-free versions of their products to BYU (that ended relatively recently).