Because the addresses for sending and receiving are identical.
There shouldn't be any issue by doing that.
In the background, you're spending an "
Unspent Transaction Output" (
UTXO) which will be used as an input of the transaction
and with it, create a new UTXO(s) which is the output of the transaction.
Basically, the input is a script the you've unlocked to spend coins and the output is a script that's locked coins from that input;
it's only shown as address in your wallet, so
TL;DR: When sending bitcoins, you're not actually sending to addresses.