These two messages come from the carrier's tracking updates in Shopify, so they only go for carriers Shopify tracks. Check that the order's shipment shows tracking events in Shopify.
If the order was already delivered by the time the out-for-delivery message would go, only the delivered message is sent. The Recent messages card on the Order tracking tab shows the reason for any message that wasn't sent.