Symmetrize Bones / Mirror Bones
Because you're expecting the symmetry to happen on the Y axis but the Symmetrize operation uses the X axis, so you need to rotate your armature 90° on the Z axis in Edit mode and symmetrize again. What we see is what is supposed to happen, your bones have been mirrored on the X axis.