Gun safes are primarily used to prevent access to unauthorized or unqualified parties, for burglary protection, and, in more capable safes, to protect the contents from damage during a flood or fire. Access prevention is required by law in many places, necessitating a gun lock, metal gun cabinet, or gun safe.
Although rare, large gun safes may pose a hazardous risk to small children who could accidentally lock themselves inside of one.
To minimize this risk, you should not leave large safes unlocked & unattended and home owners should always lock them after use.
Also, gun safes should in general be bolted down, both to deter crime, as well as to eliminate the possibility of the safe when empty from tipping over upon a person upon opening the door; the heaviest portion of many safes being the door.