I want to believe that you truly want to learn. I am writing this comment under the assumption you'd like to learn effectively and didn't mean any harm with your initial comment(s)
If you're entering into discussion on a topic you'd like to learn about, it may be more beneficial to you, and less negative for others, if you ask questions instead of posing statements.
The mod isn't trying to tell you that you're transphobic - they're just trying to tell you/give you a nudge that the thing you said is a very, very common transphobic piece of rhetoric.
As for the stern response in general - life as a trans person (or any member of the LGBTQ+ community, for that matter) at the moment is fucking scary. Several countries that were making huge steps toward better rights and equality and healthcare, are regressing at astonishing rates, and its putting our lives in danger.
Rhetoric along the lines of the sentiment you expressed is part of the general arsenal of the people spearheading action against LGBTQ+ folks' existences, and when we start seeing it entering our community/ies, it's so important to stamp that shit out fast, for one because we want the communities to feel safe, so swift, stern action must be taken, but also because if its allowed to take root in any way, that poses genuine threat to people's lives.
I hope you find this constructive and educational, and that it helps avoid future accidents 😊