Interesting, did you take pics? Most living quarters (小区)in China have electrical fences and most windows have been barred. Left over from the 80’s when crime was high. Nowadays the bars prevent pets and children from falling out of the window (plus the cage like construction allows for some extra storage space)