Why is the mother automatically decided to be the custodial parent in pennsylvania?

Because we know she's the parent, we saw the baby come out of her. It's been documented. The father can be anyone until he has established paternity in court by leaving a DNA test. Then he can petition for visitation, custody and can pay child support.