Because browsers treat QR codes as images, not data. They don’t natively parse or extract links unless you use a camera or scanner API.
It’s mostly a UX and security choice-automatically turning any image with a QR into a clickable link could be abused for phishing or tracking.
That said, it’d be cool if browsers offered a “Scan QR in page” option like mobile OSes do.