Because the site is served from [0], Github Pages uses the CNAME file if avalible [1], therefore the github.io site [2] redirects to the custom domain [3]. Github Pages does not allow HTTPS on custom domains yet.
[0] https://github.com/palerdot/exceljson
[1] https://github.com/palerdot/exceljson/blob/master/CNAME