Humans are well adapted to the Earth of thousands of years ago, up until the 1800s or so.
The Earth of the future, not so much.
The rapid expansion of human population since 1800 challenges this claim.
We don't need an ideal climate to flourish. That's part of our species' strength: our remarkable ability to adapt.
Humans aren't going to be able to adapt to an irradiated wasteland.
Sure, depending on how far you want to go into the future, eventually the sun will grow so bright that all our water will boil away... but barring a catastrophe that destroys (almost) all life (nearby supernova, collision with a large space rock, ...) I'm pretty sure that earth will remain more hospitable to human life for tens of thousands of years than any planet we will find.
More space? Less extreme weather? Lots of accessible mining? Etc