It’s possible to have an “anonymous birth”, so mother and baby get medical care, but don’t need to give a name. It is meant for cases where the mother wouldn’t or couldn’t seek help otherwise, e.g. in abusive relationships or family situations.