The issue is that this punishment establishes two classes of people. Those who can lose their citizenship because they can theoretically get another somewhere and those who cant.
Imagine if this child was born in the UK to British parents and has no other possible nationalities, what then?
When a country grants citizenship they should not be allowed to revoke it unless it was obtained fraudulently. Revoking citizenship should never be used as a form of punishment.