He basically says that he wishes that it was him instead of his friend
Learning is taking in new facts, while studying is looking over stuff you already know to prepare for a test. For example: You look over flash cards while studying to remember things you already know. While st school, you take in new information.