That has nothing to do with penalties. Barca has many situations where they play some passes in the box or players dribble in tight spaces.
I would say both teams spend very much time in the opponent's box but it is obvious that Real has the refs in their pockets.