There are three primary goals to shaking a drink before serving. One, adequately chill the contents of the beverage. Two, mix the contents of the beverage.
It is more sanitary to use a shaker since it takes away from the physical contact. Also it allows for the drink to get mixed correctly. Also it just makes it look cooler ha.