"Everything happens for a reason." What does that even mean? That is supposed to be some weird kind of support, but the expression makes no sense to me.
I think it's one of those cop out type excuses. It's easy to say and is a shabby attempt to suggest that even when bad things happen there's a good reason behind them. Fairly lazy I think. I would ask.... what about rape? , do you think rape happens for a reason?
People like to think that ultimately even terrible events are necessary to achieve a greater good. It's a coping mechanism. Believers infer that the reason is their personal flavor of deity. As far as general causality is concerned, of course everything happens for a reason, but the reason is probably mundane, awful, or accidental, certainly not divine. Don't let it bother you too much.
Even people who aren't religious say this. I think it's rude!