A routine examination of a whale took an unexpected turn when scientists uncovered something hidden inside its body.