Primary cancer starts in the liver. Metastatic cancer spreads to it from other places. Both can harm liver function and raise enzyme levels.