Question: how can em waves transfer energy differently in a material medium as compared to a vacuum?
Answer: When EM waves encounter a material medium, they can interact with it in much the same way that mechanical waves do. ... In a vacuum, EM waves transfer energy only by moving potential energy from one place to another. But when EM waves encounter matter, their energy can be converted into many different forms.