Decorative buttons first appeared around 2000 BC, but they weren’t commonly used as fasteners until the sixteenth century.
Because most men are right-handed and generally dressed themselves, they found it easier to fasten their buttons from right to left.
However, wealthy women were dressed by servants, who found it easier to fasten their mistresses’ clothes if the buttons were on her left.
The practice eventually became convention and has never changed, even today.