Replacing the 6-hydroxy group in morphine with a 6-O-acetyl group increases the lipophilicity of the molecule, enhancing its ability to cross the blood-brain barrier. This results in increased potency and activity of the molecule, as seen in compounds like heroin (diacetylmorphine).