The natural frequency of water matches the frequency of microwave. This is the reason that food containing water gets cooked. The natural frequency of the plastic container does not match the frequency of microwave. So, the plastic container is not damaged.