and ravana was not entirely a Brahmin. His mother was asura and father was a sage and a Brahmin. In any case, Indian society is mainly patriarchial and Ravana was well-versed in Vedas and other rituals that wezEre necessarily reserved for Brahmins in ancient times.