Additional features, settings, or issues not covered by specific Microsoft Teams categories
Hi Anamika,
It pulls data from Active directory, if your organization has a On-prem Active directly then that will sync to your Office 365 Azure AD and maintain these information to show you on organization chat.
I hope it answers your question. Please let me know if you have any question/clarification on this and I will be happy to help.
Regards
Nik