virus 1 (HSV 1), is usually acquired orally in childhood. So sexual contact is not mandatory for various types of herpes. It may be acquired by other means as well.
Similarly Herpes Zoster
) is caused by reactivation of the virus which previously caused chicken pox
, then remains dormant for years and again shows up as shingles..