Can someone please explain how Tampa Bay could host the wild card game with an 8-9 record, while Dallas had a 12-5 record?

I tried to Google it but all I got was post game info, also, I didn't wanna spend all day trying to find out. I always thought it was based on your overall record? And if there are tied records, they go by divisional wins, conference wins...

Can someone please explain how Tampa Bay could host the wild card game with an 8-9 record, while Dallas had a 12-5 record?
Post Opinion