Why would they worry about that if they could simply leave us behind? They don’t need air or water and energy exists in vast abundance in space.
Interesting thought. Wouldn’t it take quite a long period of time before they could amass the numbers required to create rockets and fuel supplies to “leave us behind”? If it took them, say, 100 years to get to the point they could build and power rocket ships, they might perceive humans as an existential threat during that time. Also, wouldn’t it be easier for robots to stay on earth and wipe out all threats to their existence rather than figure out how to leave earth? Sources of energy may be abundant in space, but they are highly concentrated on planets, moons, and asteroids and are not that easy to obtain.