How can cancer get into a body?

It is the body. Cancer is a disease due to the failure of immunosurveillance. To put it simplistically, the body is like a huge assembly line and the quality control fails to reject the defective cells that are manufactured. There are several reasons as to why the defective cells are produced and research is still continuing on the causation. Cancer can be grown in lab animals but is not done so in humans.