Repeating a Grade at a Prep-School?

Can someone comment on the purpose of PG year? Is it usually for sports? Or also done for academic reasons? I am just curious. Also, I heard that schools won’t keep a kid for a PG year; it must be done elsewhere. Is that correct?