someone may use terrorism because non-violence isn’t working in their favor. Violence on large levels like terrorism can scare whole populations of people. Since terrorism is violent and may bring many many deaths, it is usually a very last resort to bringing change because of moral reasons.
hope i helped :)