Good grief! That does seem stupid (I was gonna say "silly", but no, it's stupid). That's how codes are run at a lot of places, but most of the time, when that happens, the house super will dismiss people after awhile (leaving 1-2 extra people for compression relief). It's the natural thing to do, when a code is called, to run in the room, especially if the hospital doesn't have a set routine/procedure in place. Once you've found out that you're not needed though, you should move on without someone having to tell you (like you did in your example).
Some hospitals I've been to assign certain people to certain tasks, on the off chance someone codes, during the shift assignment and that's really nice (although if someone else's pt crumps it has to be rearranged a bit). It makes for less chaos, but lets other people run for them (outside the room!) if necessary. That's all I did for two codes at that facility: mix levo, mix vaso, communicate with pharmacy, prime CVP, ART, and PAP lines, label the tubing, get orders, etc.
Hopefully they'll figure that out where you work and it never hurts to mention it to the director/manager because, even if it's not something that you do very often, there should be a protocol in place that actually gets followed.