The relation you assumed is under the assumption for an idea case: No power loss from the transformer: all the power are transformed. However, the above applet simulate real transformer: Some power are loss due to resistance in the transmission line.