It's not. I take you are comparing to western countries. If you have a valid visa and behave even remotely normal to the border agents you will have no issues. Only in the USA some border agents have the attitude of "I'm gonna get you" or making you feel unwelcome for no reason. Hell, even in "authoritarian" countries like UAE or Quatar I never experience anything but pleasant interactions on the border.