To loading sketch, not only TX and RX, but DTR need to connect too. (as far i know, it is connected to reset pin) When loading sketch, arduino need the atmega to reset in the prefect time. It just like handshake before we exchange our name card
I hope that helped, and correct me if I’m wrong.