Because we don’t want to be told who to voluntarily take into our alliance by an opponent? Are you going to give china everything they ask for next because they take Taiwan if you don’t?
But NATO first agreed not to expand to countries along Russia's border, because they see that as a threat. But then NATO did anyway. So it's not like we're being told by Russia what to do, we made an agreement.
And Russia is also a superpower, and we don't want to be in conflict with them. So yeah it's not that everything they say we should abide to, but we should also not think that we can do everything without upsetting them.
NATO didn’t agree to not expand, some ministers of some member countries verbally said that NATO wouldn’t expand. It’s not like there was a treaty that was signed and then ignored.
Well I guess that for Russia it doesn't really matter if the agreement was official. They still feel threatened by it, and they have been saying that, and NATO still went on.