if using exchange online mailbox there is a setting to 'Turn on sending from aliases'
Without this setting, the from: alias-email-address falls back to primary-email-address
You will find this setting in Exchange admin center > Settings > Mail Flow
To change the setting you will need to have exchange online admin rights and this change will affect all mailboxes.
Here is some more info: https://techcommunity.microsoft.com/t5/exchange-team-blog/sending-from-email-aliases-public-preview/ba-p/3070501
Regars