The full phrase was "IBM PC compatible" and that dates back to the 1980s.
And it was specific to the PC model. The PC was a new architecture and IBM was otherwise better known for their other products at the time.
PC was established long before those Apple commercials.