Welcome to PC!
Only you can truly answer the question as to why you decided to lie. Just learn a valuable lesson from it and yes, talk to a therapist if need be. Solid and healthy relationships do not involve lies or manipulations. Commitment should come naturally and over time. Best to avoid desperate measures to hold onto someone. If it's meant to be, it will. (((hugs)))