Deflating is for above mentioned reason (axle nut being the only thing holding the 2 wheel parts together when bolts are broken).
Some AMM's state however that a visual check can go in place. For e.g. 757 it is not necessary to deflate if all bolts are ok and wheel change is for normal tyre wear reasons. I almost always do deflate as good practice though.