I think the answer is: In ancient India, society was divided into four parts: Brahmins, kshatriyas, vaisyas, and sudras. The Rajputs eventually came to occupy the place in society of the kshatriyas. In that ancient era, this system was very fluid and flexible.