A person does not have to die due to violence in order for the term "rest in power" to be used. It can be used for people who were activists or those who struggled with systems of oppression in their lives. For example, Katherine Johnson was a NASA mathematician. She did not die a violent death. But US congresswoman Ilhan Omar used the phrase in a tweet to honor Johnson's achievements despite the racism and sexism she faced in NASA.