I'm not an encyclopedia of AT&T offerings but...
The Nexus 5 is more comparable to the iPhone 5C which AT&T offers for $199 on contract (let's compare 32GB models since Google only charges $50 vs Apple's $100 for the upgrade). At $399 the extra $200 works out to $8 more a month. This is about what I pay monthly to AT&T including fees.
Like I said T-Mobile does a lot of great consumer things. For some people it will be worth it to go with T-Mobile. For others the difference isn't quite so large and in many places the T-Mobile network simply isn't good enough[1].
[1] http://opensignal.com/network-coverage-maps/t-mobile-coverag...