The reason why you would talk differently to a friend to a boss is the level of respect that’s is displayed within them. Your friend you would be more relaxed. However your boss you would have to show a higher level of respect. For example for your boss you would certainly talk formally while for a friend you may talk slang or vary your tone.