The joke is a pun.  Wet concrete needs to dry before it hardens, and anything pressed into it would leave an impression or indent in the shape.  The phrase 'leaving a bad impression' generally is used to mean not behaving in an appropriate or respectable manner when meeting someone for the first time.
When he fell in the wet concrete he left a bad impression .