What would you rather do? Tilt your head back at just the right angle and hold still so a medical practitioner can probe the absolute depths of your nose, or spit in a tube?
The latter, of course. Filling a vial with saliva is also faster and requires less contact with other people, which is why labs around the world are investigating COVID-19 diagnostic tests that trade swabs for spit.