@Bradek
It's a common practice in Japan (and other Asian countries for that matter). There even a word for it: 寿退社. Some women even aimed to quit her job after nabbing a man and only work temporarily until marriage (which there also a word for it: 腰掛け入社).
The reason why this practice exists...