They released iphone after many competitors had half baked products in the market. Using capacitive touch with gestures like pinch zoom was absolutely brilliant.
For tablets, they waited until Microsoft's attempt at tablet computers failed, and then they gave their own twist. I guess there was a time they actively learned from their competitors' successes and mistakes.