If you quit while on parental leave, should you have to return the money?

My office told me they were revising their policy after I tried quitting while on leave so that if someone quit they would have to repay the money.

My opinion is parental leave is like vacation or sick time - something you earn as an employee. I think companies should accept that risk when they decide how much to pay and his long you have to work there before receiving paid leave.