If cancer cells such as the Hela line are provided with nutrients, they keep dividing and forming new cells, because they lack the "STOP" command.
This is like a computer program stuck in a GOTO loop. Eventually the computer runs out of memory and crashes. In an organism, eventually cancerous cells consume too many resources, create too many waste products, take too much space. The system fails. The organism dies, taking all the cancerous cells with it.
That's not the same thing as culturing cells in vitro.
Viruses can move from body to body, hijacking the body's own systems to produce millions of copies of the virus.
Cancerous cells can't do that, because they have no way to escape the body. When it dies, so do they.
This is why the whole world is not one huge, undifferentiated mass of cancer cells.
Instead, the world is one huge , undifferentiated mass of bacteria and viruses, with some plants and animals for variety.