Because in America, women are more likely to graduate high school [0], enroll in college [1], graduate from college [2], and even make up 3/5's of graduate students [2].
[0] http://www.infoplease.com/ipa/A0779196.html
[1] http://www.pewresearch.org/fact-tank/2014/03/06/womens-colle...
[2] http://www.prb.org/Publications/Articles/2011/gender-gap-in-...
As such, reasoning in terms of "ability" is fundamentally flawed because "skills" are never innate, they're the result of a lot of work and positive circumstances in a given field and starting with a handicap from the get go just makes it so much harder that it's absolutely not a level ground.
/s
In 2013, it was Finland and Costa Rica whose teams were "gender balanced", not Ukraine and Bosnia&Herzegovina. In 2012, Bolivia. In 2009, Kuwait.
Previous years stats don't suggest their education systems are anyhow different, it's just how this year's random has laid out.