That's a very good point. The way the human population grows in combination with the way we use the resources on Earth, it is theoretically possible that we run out of resources and need to colonize other planets. In that context, searching for a habitable planet is highly practical in the long run.
Reminds me of how Q in StarTrek says that humans are like a virus and that we infect planets.
"They that can give up essential liberty to obtain a little temporary saftey deserve neither liberty not saftey." -- Benjamin Franklin, 1759