True, they certainly could have done that.Honestly, they should have flown Xi Jinping onto the carrier using a helicopter (or later a Y-7 AWACS) and do the inspection while the naval exercise was going on. Makes a president look more active this way.
But he visited the Training facility first, then onto the carrier. And the carrier had recently come back from another exercise so I imagine this visit was planned well in advance to coincide with when she was in port.
Either way, his visit to both places sends a strong message, and it is a message I am sure those sailors and personnel involved with all aspects of the program appreciate.