Since, the first() of all the productions of S is different, its left factored. If the first() of more than or equal to 2 productions had some common in them, then left factoring is necessary.
Had A->a and B->a were the productions, still you would need to do left factoring considering LL(1).