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.
"Truth never comes into the world but like a bastard, to the ignominy of him that brought her birth." -- Milton