Both HBV and HCV are significant risk factors for developing liver cancer, specifically hepatocellular carcinoma (HCC). Chronic infection with these viruses leads to prolonged liver inflammation, which can result in liver damage, cirrhosis, and eventually cancer.