These are contests special to the Ealora islands. They are held at random on different islands and once a year there's a Championship. To enter the championship you need 8 tokens which you can earn by winning the obstacle contests.
The goal of the contest is for trainers and their pokemon to complete a difficult obstacle course. You also get points for style (so 'showing off' is recommended) and time. You don't have to complete it the fastest to be able to win though it does help