From the Help screen:
Tiebreakers - A tiebreaker system is used if two or more teams tie for a playoff berth. Head-to-head record is used first, then division record, then run differential, then last season's record and finally a coin flip.
I see the first tiebreaker (H2H) as a 5-5 tie. Which means the second tiebreaker (division record) came into play. Detroit was 19-11, Baltimore was 16-14. Detroit wins the 2 seed.