Where does “了” come from?

Words derived from “了”