In Altium, wire object alone does not possess the net name attribute. It must be connected to a component pin, net label, power port, port, sheet entry, or off-sheet connector. This can be confirmed by hovering over the wire once it is connected.
The behavior is also determined by the configuration set in Project Options ► Option tab ► Netlist Options section.