I mean, it makes sense to me. Whether you are trans or not, I feel like people voting for you should be aware if you have changed your name so they can do some googling and make sure you didn’t get into any controversy or shenanigans before you changed your name.
Sure they are specifically using this law to target this person because they disagree with their way of life, but it’s an old law and was passed for reasons before trans issues were even prevalent so the law itself isn’t transphobic.