You don't need to be "invited" to a funeral.
But you should not INVADE a funeral (of someone you do not know) for political purposes.
This was a political move, a publicity stunt, and had NOTHING to do with the person who was being honored that day.
"This was a political move, a publicity stunt,.."
Much like Houston TX's own Shiela Jack@$$ Lee (D-Mars)