Maybe the rooms have already been allotted. Maybe the room is not available for the particular slot you wanted. Yes anyone can book any type of room or dormitory with any kind of confirmed/RAC ticket. You can even book a deluxe AC room with a second class sitting confirmed ticket.