They don't have to, but the're also not obliged to keep it confidential. Its really at their discretion
Does your school/college have a counselling service? It might be worth using it if it does as they do have to keep things confidential unless they think you or someone else is in serious danger