They were called groundlings.

These were the poorer spectators who paid a penny to stand in the open yard (or “pit”) right in front of the stage at Shakespeare’s Globe Theatre.