I just don't want to bring a steak knife to a gunfight.
If you can reach a gun, by all means use it. But let's say you've got your gun stored in your bedroom and the attacker broke in while you were out, so you end up confronting them in the living room and you can't get to the gun in the bedroom. In that case it might be handy to have another means of defense available.