These borders are disputed. China claims to own some bits which India also claims, India claims some bits which Pakistan claims.
I think there used to be some bits claimed by all 3, but China and Pakistan came to an agreement.
So Google tries to stay somewhat neutral and use dotted lines to show that there isn’t agreement over where one country ends and the next begins.
It may show something different for people in different countries though.