Harassment is not always intentional, and doesn't have to be intentional to be illegal.
Men can harass men, women can harass women, women can harass men and men can harass women.
A person can feel harassed even if he or she is not the intended target of the behavior. While not all harassing behavior meets the standard of illegal conduct, any workplace harassment is inappropriate and should not be tolerated. If you feel harassed at work or you are aware of incidents of workplace harassment, you have a right and a responsibility to confront the harasser if you feel safe doing so, or to report the harassment to a manager or an appropriate human resources person. If you report an incident of harassment, the organization will conduct a fair, discreet investigation and appropriate corrective action will be taken. It is illegal to retaliate in any way against an employee for complaining about or reporting workplace harassment.