During physical activity, injuries occur in the individual muscle fibres. You might not feel it, but it happens.
Compressing the muscles that have done the work supports the individual fibres and reduces swelling.
Swelling slows repair, so anything that reduces swelling also reduces recovery time.