It has to do with vibrations being able to travel through the air when the tuning fork was struck the vibrations made the air around it vibrate as well and when the vibrating fork got near the string the vibrating air made the string vibrate as well.