Why is second hd auto mounting and by what mechanism

Automounting is usually configured through fstab or systemd.
Also automounting is done by root, so that mounting point is owned by root until you change its ownership.