As explained in the manual, the number of passengers is calculated from the actual weight of the airplane load stations when you call GSX. So, apparently, your airplane was empty at that time.
Some airplanes (Aerosoft A320, for example) simulate a progressive loading of passengers, which means if you call GSX when the airplane is still loading, the number of passenger will be off.