“What could these be used for? It’s a bunch of shaped wood locked in a cage in a park in Barcelona.”
This weird installation is actually a bug hotel. Different useful bugs and insects can settle in there like ladybugs, butterflies and lacewing flies.
#2 & #3... AKA Bee hotels, Typically french.