Why was a police officer killed in the line of duty while doing his job a hero? Are you for real? In this particular case, Tippit noted someone behaving suspiciously. What exactly Oswald did to draw his attention cannot be known but Oswald had ample cause, as someone who had just assassinated the president, to not want to be seen by the police. Tippit was not satisfied by whatever bull Oswald told him through the window and Tippit decided to pursue the matter further. Outstanding police work that eventually led to the apprehension of the man who assassinated the president of the United States. Tippit was murdered in the process by a criminal. That checks all the boxes for being a hero. He will forever be credited as a hero in the history books. A police officer who was doing his job and gave his life. I don't believe that he necessarily had any cause to believe Oswald was the assassin. What he did have cause to note was that Oswald was acting suspiciously. It was good police work.
You've got a weird perception of what makes somebody a hero.
Why was a police officer killed in the line of duty while doing his job a hero? Are you for real? Yes. He was a cop doing his job. That alone doesn't make him a hero and neither does getting shot and killed.
In fact, there was nothing heroic about anything Tippit did, unless you want to call getting out of a car to talk to a civilian, he clearly did not perceive to be a threat, an act of heroism.