From the comments:
“It's a relay race. lire small dogs like that are specifically chosen because the height of the hurdles is set based on the smallest dog on the team. His job is to make the rest of them glide right past them”
Still, fun to watch such a small dog tearing through the race and giving his all. Go, pug, go!