Why is it better to drink room temperature water instead of cold water?
Your teacher was passing on a myth. 

This false belief might be related to the equally false belief that hot exerted horses should not be fed cold water. It could also be down to someone downing a big glass of ice-cold water in one go as a child, get a brief stomach ache and spin a health-advice on it.