The highest gains are also only available for a few days in the year. If there are three really good days for a stock then you're going to hit all of them if you hold it for the entire year. If you buy and sell shortly after you might miss all of them.