That's the dumbest thing you've said all day.
When someone dresses sexy, they're not doing anything to you. There is no aggressive action there. But when you say something, even if you think it's innocuous, you have taken action against that person. If you say something that offends someone, regardless of whether you intended to offend them or not, you should apologize. That's just good manners.