You should enable the corresponding functionality to be able to change the default stock in Magento 2:
– Go to your admin sidebar;
– Proceed to Stores -> Settings -> Configuration.
– Expand the Catalog section and choose Inventory.
– In the Product Stock Options section, set Manage Stock to Yes.
– Click Save Config when complete.