Demystifying the Infrared Emission of Type-1 AGNs from z~0 to z~6