I think it's because historically women helped button men's shirts and as the buttons are on the other side, it's easier for women to button men's shirts
Historically, women were dressed by/with the help of servants, while men dressed themselves most of the time. Thus, women's buttons were placed such that they could best be closed by others, while men's buttons were meant to be closed by the one wearing them.