Answer:
Warts are caused by a virus, specifically the human papillomavirus. This virus infects your skin, specifically your dermis. This it does by entering through cuts and 'microcuts', submicroscopic cuts that let in pathogens. So touching a wart or a surface that has been touched by warty material lets in infection and makes you get warts.