People that have a lot of experience with firearms and are comfortable around them can get lax. They "know it's not loaded" instead of checking. Muzzle discipline goes by the wayside. And a fun afternoon shooting clays turns into this.
It's not an accident. The shotgun didn't "just go off". The shotgun was loaded, pointed in an unsafe direction, and the trigger was pulled. It's a negligent.