Bullying and harassment are sometimes used as synonyms and treated was words that mean the same thing. It is true that both words are similar and involve intentional actions or words that harm another person, it is also true that there is an important difference is the definitions.
When bullying is directed as a specific type of person or a protected class of people, then it is called harassment. Additionally, there also some violent acts of bullying that qualify as criminal harassment.