The World War I ended with a win of the Allied forces. Germany did not surrendered though, but instead an armistice was signed. The same was the case with Austria-Hungary, the Ottoman Empire, and Bulgaria. There were multiple limiting things in the armistice for Germany, but it did not affected its military power, nor did the Germans had to give up on any of their weapons, thus they kept everything they had, including their fleet of U-boats. That didn't turned out to be the best move, as Germany was left with a basis to be able to upgrade and start a new war, which happened soon after.
One of the main ways in which economic opportunity divided urban and rural dwellers is that those who could afford to live in the suburbs usually chose to do so, while low-income people who had to work lesser-paying jobs were usually confined to the cities.