The story
You place a bowl of leftovers in a microwave oven. A short time later, steam rises from the food. The walls did not become glowing hot, and the air was not heated like the air in a conventional oven. Instead, the food absorbed energy from electromagnetic waves, waves made of changing electric and magnetic fields. That energy became heat inside regions where the waves were absorbed.
Water is an important part of the process. A water molecule has an uneven distribution of electric charge. The changing electric field pushes on that distribution and tends to turn the molecule. In liquid water and food, interactions among molecules turn absorbed energy into disordered motion. That increased motion means heating. The process is not a special magic frequency that works only on water. Other ingredients can absorb energy too.
The familiar claim that microwaves cook from the inside out is misleading. Waves penetrate only partway into many foods, and heat also spreads from warmer regions to cooler ones. Thick food can keep a cool center. The rotating plate and stirring help because energy is not absorbed evenly everywhere. A fast-heating bowl is an example of waves transferring energy directly to matter, followed by ordinary heat transfer.