Main thing for automatic failover is quorum/majority number of votes, in mirroring we've witness to maintain the quorum/majority number of votes whereas in alwayson/SQL automatic failover takes care by the windows cluster with the help of quorum configuration and majority number of votes.