Pizza with toppings was apparently invented after the unification of Italy in the 19th century, when someone created three flat pizzas with different sets of toppings. The most popular one was named after the new queen of Italy.
And it was mostly Italian immigrants to the US who remembered this and started experimenting with more pizza styles. When they returned to Italy in WW2, they were surprised not to find any pizzas there, and local Italians quickly started making and inventing pizzas for these Americans.