Coprolites are classified as trace fossils as opposed to body fossils, as they give evidence for the animal's behaviour (in this case, diet) rather than morphology.
The presence of an animal fossil in a rock gives evidence of the time period the animal lived in.