Why do people treat you differently after you lost the weight? Because our identity isn’t something that we simply decide for internally for ourselves.
Yes, you might still be the same person inside as you were before losing the weight, but that’s not how others see it.
Your identity is both what you think of yourself and how others think of you.
There is a foolish notion in the culture right now that we can simply decide who we are, and that the opinions of others don’t matter. This isn’t true, we are social animals and the opinions of others matter to some extent.
So yes, if you change your outer appearance, people treat you differently, just as you treat others based on their appearance.
Anyway, good job on your weight loss.