The stated reasons is patriotism. The real reason is that the military buys a lot of airline tickets and the military member gets to choose from a list of flights from a variety of airlines.
Families with children are also allowed to board early, because they slow down the boarding process otherwise.