I can imagine an enthusiastic extremist counsellor convincing a kid their feelings mean they were meant to be the opposite gender when they really weren’t.
Probably has never happened (although I will conceded that there are probably some counsellors who have made a mistake and maybe pushed it too hard), but what I can say for certain is that extremist parents have done exactly this, many times, over and over. Which is why the law exists and should exist.