What could cause cancer of the liver?

Multiple agents. Hepatitis b and c viruses, alcohol, toxin form fungus, aflatoxin, and cirrhosis from any cause. Metastatic cancer of the liver is far more common than primary liver cancer.