I've watched documentaries about the youth clinic Rhodes Farm and they allow the kids there to exercise even when they're inpatient and underweight so long as (like you said) they aren't at risk of passing out. I would assume that they would be more strict with underage people due to liability factors, and they even have fitness classes they can take part in!