Such a classic scene. Apparently the brick falling wasn't planned.
Ralph was supposed to kick it but everyone was surprised during one of the takes when it fell off. When they realized it was loose they decided to write it in and gave Alli's dad that line.