Well, it had nothing to do with virginity. Thousands of years ago, white symbolized celebration; later, it represented affluence. The thinking was you had to be wealthy to wear a white dress, which would get soiled and thrown out after only one or two wearings.