Flamestrike
Legend
Its a dangerous assumption about fightets getting more attacks at least until higher levels.A hunter ranger can often get more attacks in than a fighter.
Only if they select Horde breaker and only if there is a creature within 5' of the original target.
Fighters on the other hand at the same level have Action surge, and 4 precision attacks (+1d8 to hit, choose after seeing the attack roll) to land those sharpshooter -5/+10's (or menacing attacks if they hit without precision attack, for the extra 1d8 damage and the frightened condition stopping the target from moving closer on top of the d8+13 damage).
The Hunter ranger above has hunters mark a few times per day, for an extra 1d6 damage per round. Hes using his bonus action to shift it though.
Presuming ranged fighters, the fighter has archery style from 1st (our ranger has to wait till 2nd level) and has his Dexterity maxed to 20 by 6th level (assuming both are Vumans for Sharpshooter at 1st). By this stage extra attack is online, meaning our fighter is letting off 4 arrows with action surge 1/ short rest.
Our Ranger has to wait tol 8th level to max his Dex (at which point the Fighter is picking up something like Lucky for even better accuracy, or Resilient Wisdom. He also picked up another superiority die at 7th level). At 10th level our fighter gets another feat (lets go with Martial adept, giving him 6 superiority die now) and his dice turn into d10's. At 11th level he gets 3 attacks per round (or six when he action surges).
You keep saying they are not even comparable, but you're wrong.