If you step into their shoes for a minute, things will start to make sense.
What if it were a Pakistani pilot in their custody? In future this could very well be a case.
A lot of news papers, analysis (minus Indian, they don’t count as news but cartoons) are praising the mature stance taken by Pakistan.
If this resolves the issue, most of the world will give Pakistan credit for its many efforts in de-escalation. If not, there is a line of Indian pilots waiting to be shot down.
If you mistake this as a sign of weakness or submission, you are silly. One side shooting down 2 jets with no loss isn’t the weak one.