Research suggests a large part of the short-term gain in range of motion from stretching comes from increased tolerance rather than muscles physically getting longer.
GlossaryscienceDraft
Stretch tolerance
How much stretch sensation a person can tolerate before wanting to back off.