Mail learns your preferences by analyzing your usage patterns over time and automatically switches the “send from” address to the one you got the email to.