@ Captains flying together is a regular occurance. Possibly a checkflight or maybe a Capt was the only reserve crew member available to operate the flight.
While both may hold the rank of Captain, only one of them will be the legally nominated Pilot-in-Command.