Even though you bought the phone outright you need to use it for 40 days on the Tmobile network
on a post paid plan or a year or $100 in refills for prepaid.
If you don't meet the requirements and since the phone is an Android you can temporarily
unlock the phone with the app on the phone.
Manage your T-Mobile account