If you read the article, you’ll realize that he didn’t invent the active components that fight cancer. He invented a new vehicle to deliver such components - the soap.
For all intents and purposes, the headline is accurate. He invented the soap to treat skin cancer.
Little Bobby invents a robot that can peel potatoes. Will you say that little Bobby didn’t really do anything because he didn’t invent robots, blades or potatoes?