The stock has swung from $185 to $108 and back since June. A little-known part of the tax code explains why some investors collect income from stories like this while everyone else rides the swings.