For example, look at number theory. For centuries, it was without utility. Then, suddenly, it got practical applications, making all the time spent on it wasted time :-)
Similarly, the Collatz problem may seem useless enough, but what if, in a few millenia, someone applies it to physics or to sociology?