People should not be denied treatment as a punishment for breaking the law.
The child is not being punished for anything.
Her ineligibility is no more a punishment than the ineligibility of emigrants who move out of the UK.
The NHS provides treatment for people ordinarily resident in the UK.
The child is not ordinarily resident here.
If she is eligible for treatment then other members of our society who have made thrmselves ineligible by moving abroad temporarily will also have a case to make.
The rules on eligibility are not there to punish. They are there to restrict.
We discriminate on the basis of legal residency.
How do you establish that someone is an illegal immigrant and also that they are a part of our society?
Allowing non-residents free NHS treatment obviously creates massive problems in terms of affordability.