A lock is included in the box when purchasing a new firearm.
Not everywhere. Some states also require a spent casing to be packaged with handguns as proof the firearm discharges ok. Every state is different.