This has nothing to do with socialized medicine but rather British law in which the interests of the child supercede those of the parents. The courts are charged with what is in the best interests of the child.  You can argue whether this is best scheme or not but it has nothing to do with how the medical system is provided.