When you connect to a free or paid public Wi-Fi network, you may notice that some redirection takes place. Instead of taking you to a website you intended to visit or retrieving your email, Apple cleverly inserts a Wi-Fi portal pop-up or screen in both iOS and macOS. On that screen, you can login or agree to terms and conditions for use of the network and proceed.
Apple makes this portal page appear when your iPhone, iPad, or Mac can’t reach an Apple site directly after you joined that network. The operating system understands that something is standing in your way, and it’s almost always a portal page that Apple can repackage to make it easier for you to spot.