Why do most animals in the tropical forest live in trees?

there r over a millon animals that live in the tropical rain forest