This ability doesn’t proc if the creature misses.
That is intentional. Anything that activates from an attack has to make a hit.
“when this creature hits with an attack”?
Just being picky, I suppose.
Just so happened that I was expecting a defense boost that didn’t happen when I missed (and then subsequently died).