^^ It does stack, its just that the ranger capstone isn't good enough to make up for the extra damage (crit range, etc._ a fighter can do. Plus the fighters get haste boost.
Look, a ranger is much more versatile. The spell selection, the ability to switch between melee and range, evasion, sprint boosts. It can do a lot of things.
But just in the case of making a character to maximize range damage, the fighter is better. The fighter has more hp and strength, and if ALL you want to do with your character is kill things with a bow, go AKA. Do you really JUST want to fire your bow through 20 levels? In that case, go ahead and min/max an elf fighter.
I like that a ranger is more well rounded. But rangers aren't the top damaging aarchers.