It's called keyword expansion (at least that's what it's always been called when I was reading about it). CVS and other similar version control systems (when enabled) look for certain keywords inside a $<word>$ construct.
In this particular case "Id," which often expands to include the path, user who did the commit and version information.