Because Apple builds its own phones and nobody else can use iOS. Google wouldn't be subject to this investigation if it didn't licence Android. If it built its own Nexus phones they would be in the same position Apple is. Instead it's in the position Microsoft was in the 90's.