There were a lot of things that Luffy and Uta had in common; the love for music, the hunger of meat, their ideals for a free and peaceful world, their love for beautiful scenery... and challenges. In particular winning them.
So, when Uta comes up with a sudden and crazy challenge for Luffy, something that totally escapes his interests, the two start thinking about what and when is worth winning the most.