It can provide evidence of the environment the area was in in the past. For example, if you found a fossil with tentacles, you could guarantee that it is a marine creature (as tentacles are useless...
As long as humans dont come along and mess it up, the earth is like a big recording machine, you just have to study the right things to unravel the coded information everything contains.