Great question! This made me scratch my head too.
Let me share my personal understanding, if you keep reading, you'll see what happened next in a later verse:
Therefore, because it was the Preparation Day,
that the bodies should not remain on the cross on the Sabbath
(for that Sabbath was a high day),
the Jews asked Pilate that their legs might be broken, ...