Out of stock can be added to cart

You have to mark it as „Clearance sale“:

Shopware 6 - Catalogues - Create products