This article provides information on why self-generated traffic does not take the egress interface IP as its source.
By default, locally generated traffic takes the source IP address of the egress interface, which is the interface through which the route to the destination is established. However, in this particular scenario, the traffic uses the IP address of the loopback or the first configured interface as its source, rather than the egress interface.
This behavior is expected when the SRX is configured with the command 'set system default-address-selection'.
The default address selection follows this sequence:
default-address-selection