Most Phone Provider is locked the phone and you need to have the unlocked code for selling or other purpose,

T-Mobile needs the number for unlocking so please do this and call support and they will give you the lock code.

Press *#06#

They need the number for unlocking.

Good to know.~ :)