Shot two arrows at its center and missed both times,
swung a sword once at its center and hit twice.
What is it?
Any object with a hole in the center, including a doughnut, a bagel, a ring, or a tire.
Since these have holes in the center, shooting arrows at the center would hit nothing, but swinging a sword would hit it twice.