Some web resources are only available via HTTP or only via HTTPS. Making links to them protocol-relative will subtly break them.
(Are you "fixing" in this way all links, or only links to Wikimedia wikis? The Meta page doesn't explain that, and this is quite crucial.)