HTML is returned for browsers that don't understand redirects, but most modern browsers jump straight to the page specified in the Location header instead.
Because redirects can change the site which a user is connecting without their knowledge so redirects are not arbitrarily followed by URLConnections.