The "From" field will be filled depending on the "Default sender" selected by you when replying to an email in the Conversation tab.
However, if you are writing the first email in the thread without replying to the previous one, the "From" field will not be automatically filled if you have selected "Use case source mailbox". Instead, it will be filled with the value of the "Default mailbox" if this option has been selected.