(idiomatic) To remain where one is, whilst others leave.
(education, idiomatic) To remain in a classroom or school at the end of teaching, especially to receive punishment.