It means to betray someone. Even worse when you trust them and you leave your ass vulnerable to either loyalty or betrayal. In this case, betrayal.
He told me would pick me up from the airport but he never showed. I had to take a cab. Why does he insist on giving it in the ass? He really gave it to me in my ass this time.