Young animals are dependent on their parents for food and shelter.
The preposition "for" is often used to indicate purpose. In this example, food and shelter are the purpose of the young animals' dependence.
"For" is also used in many other situations and has many meanings. I think it's best to look at some common meanings and examples.