You do not "automatically" receive custody of your child in any contested environment. Obviously, you are your child's mother, and as such, you maintain custodial control over your child unless a court order states otherwise. In your case, the child was born to you, you took the child home with you and are raising it, and most importantly, no one is challenging this arrangement.