Why did this wire in my dryer melt?
You are correct in your assumption.

Poor crimped connection lead to a high resistance join and heating over time causing the wire to melt.

Re Terminate with a new connector.

As an extra precaution check the resistance across the thermal cut out switch the resistance should be close to zero.