Doesn't seem like assignment to me, more like documenting.
Has a penis -> Boy
Has a vagina -> Girl
Of course that is not a designation of what gender identity the person will adopt, and perhaps change more than once, over the course of his or her lifetime.
It's on the birth certificate, so it is assigned. There are some efforts to remove it, so perhaps that will change.