It could be that the login process is two-way, first establish a session and get a token, then a 2FA code is sent which needs to be presented alongside that session secret, thus an attacker merely having a 2FA code (without the associated session token) can’t use it.