Why often exists a divider line between between a sign up and a login form?

Why is it needed a divider line between these two forms? Isn't proximity enough to group each individual form elements and make each a group? Or is it needed because, since they are sharing the same background but are conceptually different things(a login and a signup), they are being wrongly perceived as a single unit due to the common region gestalt principle and hence need some separation?

enter image description here