The virus must first get under your skin, whether through a small cut, sore, or rash. One reason why flat warts develop where people shave is because shaving can leave a tiny nick in your skin.