"Shooting the messengr" is a metaphoric phrase used to describe the act of blaming the bearer of bad news, despite the bearer or messenger having no direct responsibility for the bad news or its consequences.
Because sometimes back in history, they literally did shoot the messenger when he brought news from another nation that the receiver did not like. It also sent a message.