I’m not divorced and trying to educate myself

What determines 50/50 custody versus other arrangement? I’ve read some men state they have 50/50 with this ex versus other state they have the kids every other weekend or some similar arrangement

I’m assuming these folks went to court so what determines the final arrangement?