akechi shot joker because it was necessary for his revenge on shido and his resentment made him believe revenge was more important than his one and only friend so he gaslit himself into believing he hates joker so that his death won't take a toll on his psyche