As far as I’m aware, 出 means leave, so how can this mean “attend class”?
Oh, never knew. Thanks!
In English we kinda do this when we say, “Go out to the movies,” or things like that. In a sense we are exiting where we are in the direction of the place we want to attend.