Fact 1: if fossils of an animal or plant are found in a place then that animal or plant used to live in that place. 
Fact 2: Many of the same plants and animals can be found in many other types of habitats.
Animal and plant fossils are located in those plant and animals' habitats.