On outdoor rides, the Garmin uses GPS data to record the speed rather than the magnet (unless you've checked the 'don't use GPS' o.e. option in the settings).
*This was just my understanding of it when I asked a club-mate why my speed was 0mph on my rollers*