Some cancer cells have the ability to produce hCG due to the expression of genes that are normally active only during pregnancy. This aberrant expression leads to the secretion of hCG into the bloodstream. The presence of hCG in non-pregnant individuals is therefore an indicator of potential malignancy.