I'm not sure, but I vaguely recall reading something here on the Guild forum that the AI is not coded to distinguish between generals and any other unit. Because of that it will use bodyguard cavalry as any other heavy cavalry unit.