The vratyas were a
class of itinerant ascetics who were priests of a non-Vedic fertility cult,
according to the Atharva Veda, one of the oldest Hindu religious writings.
Because there are no additional records, nothing is known
about them, although they were certainly outside the Vedic cult and hence
looked down upon.
Later on, the term was used to describe someone who has lost
their caste due to a failure to follow one of the requisite samskaras.
You may also want to read more about Hinduism here.
Be sure to check out my writings on religion here.