I’m not sure if I’m seeing it correctly, but looking at the date/time information in the TXs, it looks like the sender tried to send some Sats before he actually got the first confirmation for receiving them, thus invalidating the subsequent TX shown in the OP.
Most probably, the sender abused the RBF feature.
Below are the steps to do so.
1. Send bitcoin from address A to address B and flag the transaction as RBF.
2. Send the fund from address B to address C while the transaction from address A to address B is still unconfirmed.
3. Bump the fee of the transaction made from address A to address B.
Now, the transaction from address A to address B has a new hash. This makes the transaction from address B to address C invalid.
This is why we see that the transaction sending 0.007 from bc1q7l347h... has been made before the transaction sending that fund to it.
In fact, the 0.007 BTC sent from bc1q7l347h... in
the transaction shared by OP isn't that 0.007 BTC received in
this transaction at all.
That 0.007 BTC had been received in another transaction which is invalid now.