When you buy the coin magnet -- and the other powerups -- it unlocks the possibility for the coin magnet to appear as a powerup in your races.  Each time you pick up the powerup, it creates the magnet effect on your car, which lasts for a short time.