Why did Percy lebaron Spencer invent the microwave oven?

When he was testing radio transmission using microwaves, he observed that one of his chickens was cooked to perfection. He realised that this was a very energy efficient way of heating things so he thought that he would put it to good use.