Nothing has come to light indicating that any rescue during an execution ever occurred. There are a number of trial accounts for pirates, and all of them indicate they were carried out without escape attempts.
It's really just a trope applied to another genre of film is all, nothing historically-based.