Having a bit of trouble understanding this sentence 無職なポクが魔術の非常勤講師になったワケ what does the ワケ mean and how does it fit in this sentence?