gently it is a really good question: not how we have a 50:50 ratio (e.g half the sperm are X half are Y etc....) but why ? why did evolution lead to this ratio?
Farmers don't keep 50: 50 bulls and cows in their breeding stock because you don't need all those bulls to sire the next generation, so why waste all that food on them. So why does evolution end up with 50:50? (or not quite 51:49 or whatever...)
As Mrs Terry Prachet the answer is what benefits the species doesn't 'win' the evolutionary race. But its also not "what's what benefits the individual" either ....its what benefits the individual gene (i.e. leads to the gene being replicated more often in the next generations) . This is what "the selfish gene" means. It is a totally mind blowing idea in biology.
So you have to think of it from a genes-eye view. Being a gene that is carried in a female organism represents quite a different risk/return prospect than being a gene that is carried in a male . Female humans can have something like between 0-10 live offspring in a lifetime with probably the most likely number being a couple surviving (pre antibiotics etc.). Males can have between 0 and thousands of offspring, with the most likely number probably being 0 (many young men die in battle before having a child etc...but some become rich men with many wives, concubines, mistresses etc...). So for the genes being carried in a female organism is like betting on black at roulette, you may well win, but not big, whereas being carried in a male is like putting everything on a single number. The gene will probably loose (end up not being passed on), but occasionally it will win big by being passed into a lot of grandchildren.
So you can think about different gene options competing with each other over rounds and rounds of reproduction. A gene mutation that leads to a man producing more viable Y sperm is a higher risk prospect (for the gene) and can easily get wiped out (there are no grandchildren to carry the gene in one generation), whereas a gene mutation that leads to a man producing mainly viable X sperm (mainly daughters) is at less risk of being wiped out but will tend to get overtaken in the evolutionary race by the gene which results in more equal X/Y sperm -- so the evolutionary equilibrium tends toward.
....I'm not sure if i've explained that well!