When you beat the eggs and butter you incorporate air into them, and the flour stabilizes the air bubbles. But if too much air is in the mixture for the amount of flour, the brownies "over-expand" as they bake, but collapse, or cave in, as they cool and the unstable air bubbles deflate.