The comment should make this clear, but this code is to handle the case where AnonymousUser tries to add a course to the cart, so they must register and then `try_change_enrollment` is called