Here the "anger of Yahweh" is spoken of as if it were fire.
It was a sin for Uzzah to touch the ark because Yahweh had commanded that no one should touch the ark.