It's something built in the system . Sometimes it's able to detect a captive portal and it displays it in a separate window.
It's not reallyAs @George Garside pointed out, it's a separate program, just a window with a WebView located at /System/Library/CoreServices/Captive Network Assistant.app
.
Also, if you have a iDevice you'll see a similar feature.