"Shifts" or Rearrangements occur when a more stable carbocation can be formed as a result of a rearrangement. Stability of carbocations is as follows:
Third degree carbocations are more stable than second degree which are more stable that first degree.
An example: if you have 2-bromo-3-methyl butane and the Br leaves, it results in a second degree carbocation (two carbons bonded to the positively charged carbon). A third degree carbocation is more stable, so a hydride shift will happen and leave a positively charged carbon bound to 3 other carbons, making the molecule more stable.
Hope this helps, seems a little wordy.