Why was Penny afraid of commitment?

Did it possibly have to do with her history of how most of the pre-Leonard guys she dated ended up cheating on her or doing other horrible stuff to her?