Part of history taking and registration is to enquire regarding about next of kin.
Doctor and/or hospital need to know whom to contact in case of an emergency and worst case scenario who will be responsible for the baby if the unmentionable happens to you. Is it possible that the doctor put it more tactfully and your interpretation aws as you stated? Good luck. Baby and you will do well.