Whenever people get invited to a wedding, there are usually some "unspoken" rules to follow. One of them is that you never want to wear a white dress to a wedding because the bride usually wears white to their own wedding.
Additionally, most people don't want to dress up too much if it's a casual affair, looking to not "outshine" the bride on her special day.