What is the origin of "fine" meaning a legal penalty? [closed]

fine -

c.1200, "termination," from Old French fin "end, limit, boundary; death; fee, payment, finance, money" (10c.), from Medieval Latin finis "a payment in settlement, fine or tax," from Latin finis "end"