How is this situation a deadlock?Specially using 2PL?

It is because neither can proceed. They’re waiting on a lock held by the other, and neither will release its lock until it finishes. 2PL won’t help for the problem is in the waiting and not the locking.