This is mostly against phishing.
A phisher can get users to insert a token from a USB device or a text into evil.com.
But U2F uses public key crypto, so your token derived for evil.com is not the same as for github.com
Come to think of it, I'm not sure that's a problem with the cookie and not with TOTP.