Why aren't you at class or why aren't you in class?

Hye all,

I need to know which one is correct between those two? Can anyone explain?

.
Both are fine.
.