If you try to get this result:
Then, you will need to navigate to Customizing > WooCommerce > Product Catalog and for the Shop page display, choose Show categories & products.
If you try to get this result:
Then, you will need to navigate to Customizing > WooCommerce > Product Catalog and for the Shop page display, choose Show categories & products.