In the Star Trek: The Next Generation episode "Conundrum", the entire Enterprise crew experiences amnesia, and a new crew member appears: Commander Kieran MacDuff, the first officer. Given that
the MacDuff is actually an alien intruder from a race that has artificially induced the aforementioned amnesia and modified the ship's memory to add MacDuff to the crew manifest, with the aim of tricking the Enterprise into wiping out their enemies,
I have to wonder — why did he become first officer rather than captain? (From an in-universe standpoint, I mean.)