Most mathematical theories (Exceptions are unknown to me) were created by answering one or more open ended non-trivial questions. For example, The Brachiostome problem lead to the calculus of variations, Three pendulum problem leaded to chaos theory (somewhat physical) etc.
What are the questions that spawned most of the mathematics of 16~21st century mathematics ?
The Seven Bridges of Königsberg laid the foundations of graph theory, despite Euler originally perceiving the problem as nothing more than a puzzle.
A general solution to the degree five (quintic) equation led to Galois Theory and the Abel–Ruffini theorem.
The problem of area under a curve led to the creation of calculus. Isaac Newton and Gotfried Leibniz are usually credited with this feat, but early Greek thinkers such as Archimedes also though about area in a similar sense.