Answer:
It's related because the environment provides the food for the organism.
In an environment, you'll find plants and animals. If I was the organism in a specific environment, and in that environment I find deer and fruits, then I'll eat that. A jaguar in the rainforest will find deer, rabbits, and other animals to eat because it's a carnivore.