Of course, it
is used for tracking. Fingerprinting and evercookies are the means to identify users, referers are one of the many things that you then track, assigned to those user identifiers.
Apart from that, inadvertently leaking information is easy with the HTTP referer.