The pre-4.0 Principled BSDF had a special diffuse BSDF that contained the roughness value from the node. Since 4.0, the regular Diffuse BSDF is used, so we need to ignore it when determining the roughness value for baking.