It makes sense now that we've seen him spend five episodes becoming steadily more and more disillusioned with the maesters […] He had a dream of maesterhood that's proven to be very different from the reality he's been experiencing, and now he thinks there are better ways he can serve Westeros, so he's off to do them.