A stockout costs you the sale, and sometimes the customer. It also skews your data: if you count days you were out of stock as zero-sales days, demand looks lower than it was and your next order comes out too small.
The usual defenses are a reorder point with enough safety stock, and realistic lead times.