Wall frame weirdness during renovations
Your hunch is correct - the anchor bolt in the picture obviously isn't doing a whole lot. If the scabbed on 2x4 bothers you, just remove it, cut the existing anchor bolt off flush with the concrete, and put in a new anchor through the center of the base plate.