She said it because she felt your friend looked like sluty to her.
Sex is not a sin, most religions tell you to save it for marriage and only do it with the person(s) you're married to over the course of your life.