Entropy is measured in joules per kelvin per mole. Enthalpy change is measured in kilojoules per mole. Those are the units used when calculating them separately. But when you calculate the Gibbs free energy, you must convert the entropy change to kilojoules to have consistent units