Currently crying in pain

Has anyone had pharyngitis? If so how do you get it my voice is literally gone and my whole face is so sore I went to the doctor and got anabiotic‘s but I’m just curious on how I got it?