The federal government, as custodian of its prisoners, has the constitutional power to act in order to protect nearby (and other) communities from the danger such prisoners may pose.
That line isn’t in the version of the Constitution I have, mine must be out of date or something. I would have thought it was the States’ responsibility (if anyone’s).