Under tooth enamel sits dentine, which is naturally yellow. More of that colour can show as the outer enamel thins. See the tooth layers that explain why yellowing is not always staining.
Eēsē Health