because for first grammar: S→ ab( adjacent terminals) is an operator grammar
but the second one is S->AB, A->a, B->b (adjacent non-terminals (AB)) is not operator grammar (Yes we all know that we can make it operator grammar by replacing A and B’s Value in S but first hand it is an non-operator grammar, So we can’t make its Relation Table).