"And boy, have we patented it!"

Quick question.

Why has it taken so long before Apple acted on any iPhone-related patents? Why did they wait until the market had been flooded with Android devices?

I'm not pro or anti Apple on the patent issue, I'm just curious.