To deliver licenses from stock, when importing or creating a license you need to assign a product and set its status to ACTIVE.
This way the License Key will be considered as a candidate for delivery once the assigned product is purchased by customer.
Product Configuration
Set “License source” to Provide licenses from stock.