From Language Modeling to Instruction Following: Understanding the Behavior Shift in LLMs after Instruction Tuning