Bouncy castles can be very hot and this could cause your feet to burn. As they can be slippery when wet, there's a risk of falling and injuring yourself by slipping. Finally, bouncy castles can have sharp objects inside them, such as nails, which could cut or puncture your feet.
It is strongly advised to wear socks or shoes when using bouncy castles.