The ribs come with the roof rack and are attached at the port.
Your truck had a rack, someone removed it, filled the holes, and repainted.
I THINK the ribs are glued on except for the bit at each end. I think there's a screw in each end but not positive. I'll bet they just painted around...