An ascot is also a wide scarf or cravat which you pin around your neck. It was named after the Berkshire racetrack, as mgriffithsuk noted.