@Deepak ******
there are plenty of times when people pay taxes in both countries.
Any time you pay a lower rate in one country protected under a dta then the difference is due to the second country.
Both countries need a tax return and the tax credit from country A is used against the total due in country B