I’m pretty sure that was originally there to replicate the Balrog breaking Gandalf’s “Hold Portal” spell when they are fleeing Moria
I think there are other pulp fictional situations where magical creatures break through magical barriers (and I'm 100% sure I've seen this in Dr. Strange comics and such), but I'm not coming up with any specific examples off the top of my head.
Of course, Hold Portal has almost always had a "balrog clause" of one kind or another written into it. At least prior to WotC.
1974: "Dispel Magic will immediately negate it, a strong anti-magical creature like a Balrog will shatter it and a Knock spell will open it."
1977: "A dispel magic will negate it, a strong anti-magical creature like a Balrog will shatter it and a Knock spell will open it."
1978: "Note that any extra-dimensional creature (demon, devil, elemental, etc.) will shatter such a held portal. A magic-user of four or more experience levels higher than the spell caster can open the held portal at will. A knock spell (q.v.) or dispel magic spell (q.v.) will negate the hold portal. Held portals can be broken or battered down."
1981: "A creature of 3 hit dice (or more) greater than the caster may break open the
held portal in one round."
1983: "Any creature of 3 or more hit dice greater than the caster (including characters) may break open a held portal in one round's time, but the portal will relock if allowed to close within the duration of the spell."
1989: "Any extra-planar creature (djinn, elemental, etc.) with 4 or more Hit Dice can shatter the spell and burst open the portal. A wizard of four or more experience levels higher than the spel caster can open the held portal at will. A
knock spell or a successful
dispel magic spell can negate the
hold portal. Held portals can be broken or physically battered down."
2003: "The magic affects the portal just as if it were securely closed and normally locked. A
knock spell or a successful
dispel magic spell can negate a
hold portal spell. For a portal affected by this spell, add 5 to the normal DC for forcing open the portal."
2008: No Hold Portal, but Arcane Lock also sets a DC to open using Strength or Thievery. The DC is your Arcana check +5.
2014: No Hold Portal, but Arcane Lock goes a similar route to 3rd ed, but with a +10 to the break down DC instead of just 5.