I also never thought of how this ETC formula came about, but after googling, I found this website (www . mpug . com/articles/pmp-exam-prep-calculating-eac-and-etc-for-forecasting), which might explain to your question.
Hope that helps and good luck with your exam preparation!
Training for Project Management Professional (PMP)®, PMI Agile Certified Practitioner (PMI-ACP)®, and Certified Associate in Project Management (CAPM)®