Boasting is what happens when we’re insecure in ourselves as God made us. It’s claiming bootstrap supremacy, as we try in vain to prove our superiority over others, putting them down by lifting ourselves up. Viewed that way, boasting is terribly pathetic.
God doesn’t boast; he doesn’t need to, as once we know him we do his boasting for him. That’s called praise.