Two electrons in the same orbital cannot have parallel spins. It counteracts the fact they are repelling each other.