Offstage music performed in the theater as an effect in a play is often less problematic than performing offstage music with an orchestra.
Performing offstage music that has to be in sync with a larger ensemble on the stage involves potential problems with rhythm and pitch, because a difference of even a part of a second or a fraction of a semitone of pitch will be noticeable to the audience.