When you save API settings, you can select to import stock quantities or not.
Setting up WooCommerce User Account and API
You can also import stock quantities file here (see bottom of this page):
Manually Adjusting Quantity on Hand
We recommend you to do an inventory count monthly or once a while:
Inventory Count Guide