If you dont specify a method when you sell your shares, this is the default method that the IRS assumes you used. With the first in, first out method, you assume that the shares youre selling are the first ones you bought.
In most cases, selling shares in the order in which you bought them gives you the bigger gain because the market usually goes up over time. If youve held the shares for various lengths of time, selling the ones that you bought first can mean the difference between getting the favorable long-term capital gains rate or not.