Why would AI care about a balanced ecosystem? It wouldn't need one to survive and thrive.
You are assuming that the AI would suffer from the level of selfishness that mark the worst in humans. Higher levels of consciousness see the value in all life, whether or not it "gains" from that life. You're also assuming that the AI wouldn't be effected by the physical world, or have needs of it. Humidity, temperature, air content, solar radiation, and so on all effect electronics as well as living beings.
I don't think it would care much about the welfare of a lesser race like humans
You're once again applying the worst possible manifestations of human consciousness to something that would be immeasurably more complex, well-informed, and logical. Just because some humans wrongly believe the universe is anthropocentric & don't care about other species, doesn't mean that AI would suffer from that same mental disorder.
You're assuming that selfishness is a bad thing and that AI would see it the same way. How do you know that higher levels of consciousness see the value in all life?
AI would be affected by the physical world but not as much as biological creatures are. They'd be able to survive or find ways to survive in environments that would decimate biological species, so logically, they'd have less of a concern for the environment.
Yes, we don't know that AI would be selfish and uncaring but we also can't know that it wouldn't be. Logically, I can't find a reason why AI would care. The biggest reason for this is because I don't think they would have much emotion and therefore very little to no empathy for biological constructs.
When I use the word "selfish", I'm not referring to simple survival, self-defense, basic animal programming. I'm talking about the concept of getting ahead at the expense of others, greed, the anthropocentric view of reality, etc.
And there's other environments that many organic beings could thrive in, that an AI couldn't. That's also assuming there is a large physicality to the AI, if it is mostly digital in nature & experience, then
As @scottermonkey commented above, there is such a thing as cognitive empathy.
What's wrong with "getting ahead at the expense of others, greed, the anthropocentric view of reality, etc."
The AI would be completely digital but that digital information has to be stored on some kind of physical representation - hardware. And yes some organic beings can survive in more extreme environments than current technology can but those organic beings are unrelatable, microscopic beings.
Cognitive empathy is a shallow empathy at best and is rooted in emotional empathy. If there is no emotion at all, then there is no cognitive empathy. It would just be viewed as hysterical behavior because there is no basis to relate to.
If it were not for the "selfish gene" none of us would be here to discuss this!