That's the point of his character and what made him such a great villain, he has noble intentions. We are facing an environmental crisis, and Thanos is simply an extreme version of wanting to stop it. I loved that about him, and he had some good points.