To be "shorting something to something", there needs to be a circuit between those points, in other words a loop.
A transformer isolates its primary side from its secondary side: no galvanic connection exists between them, therefore there is no loop. You can't "short" a single wire without a return path.
Try this experiment: take a linear DC power pack, one of the big heavy square ones with 2 prongs. plug it in, then put one probe of a DMM into the barrel. Put the other probe into the electric outlet: hot, neutral, or ground, it doesn't matter. There will be no current through the DMM in either case. Did you "short" the power supply to ground?