Beat the Nazis to develop the atomic bomb.
Increase the volume of cotton that could be cleaned in an hour.
Expedite the process to pump water out of British coal mines.
Starting with a problem makes your invention have an immediate use case and is more likely to monetize quickly.
Yet, solving a problem is not the sole origin story of invention.
Sometimes one simply tinkers.