Here's a better way to think about it:
* Fossils are the preserved remains of ancient organisms. This means they were once living creatures in various environments, like oceans, forests, deserts, and more.
* Where a fossil is found today tells us something about where the organism lived in the past. For example, finding a dinosaur fossil in a desert means that area was likely once a lush environment.
So, instead of asking where fossils lived, we should ask where did the organisms that became fossils live?
The answer to that depends on the specific fossil. Some lived in the ocean, some on land, some in the air. Fossils give us a glimpse into the past, helping us understand the history of life on Earth!