Yeah, it's just a holdover, the term "vitamin" originated from "vital amine", and vitamin D doesn't even have an amine group
Well neither does Vitamin C.
It is a cofactor though
https://en.wikipedia.org/wiki/Vitamin_C#Pharmacology