My boyfriend told me it’s wrong that girls are often accused of inviting rape for what they wear but that’s ‘just the way it is’

My boyfriend told me it’s wrong that girls are often accused of inviting rape for what they wear but that’s ‘just the way it is’