How does Mt Everest belong to Nepal?

Because it is in Nepal. Your question is like- ' How does Grand Canyon belong to USA?'

+++

It's shared. The international border between Nepal and Tibet runs across it, so only about half of it is in Nepalese territory.