Could be any of those things mentioned.
Also could be part of towel or wash cloth rack,one end appears to be broken. The diameter is consistent with glass rod racks I have seen and they were made in many colors. I believe the reasons they were made of glass are they would not tarnish or deteriorate like metal ones, could be easily cleaned and could be made in any colors.