The online Oxford dictionary describes the the origin of the word ‘quit’ as follows:
Middle English (in the sense ‘set free’)
Set free. Not fail, not give up, not retreat in defeat. When you quit you haven’t failed, you are simply set free from something that wasn’t working for you. Over the years, society has added its own meaning to the word, adding much stigma to it in the process. But if you are ever struggling with the negative connotations of the word ‘quit,’ please consider the Middle English origin and feel set free!!