I vaguely recall having encountered that. I don't remember how or why.
This is independent of the coin ship you can trigger when you finish a level under certain conditions.
Oh yeah sorry that might help lol. This was on the Switch Online Super Mario All-Stars version of the game.