It has nothing to do with driver rankings. It is decided by qualifying lap times. Anyone who doesn't go faster than 2:04 is classed as AM and can't go faster than that in the race more than 10 times or they get a penalty, They get more fuel.
Anyone who goes faster than 2:04 is classed as PRO and can go as fast as they like all though the race. They get less fuel.