Thanos saw a universe populated by beings who had exceed the limits of the nature. As he saw it, there were only two possibilities, either voluntarily check the growth of life or let nature do it for us. Thanos chose the former path, because the latter would involve incalculably more suffering. The Avengers movies are fiction, but the dilemma posed by Thanos is a real one.