Because they've worked, paid tax and lived in the UK for the longest - they've contributed to the UK and so they deserve to vote.
They've actually seen the effects of joining the EU for themselves, no matter how positive or negative its impacts have been.
If us young people now were not allowed to vote when we're older, we'd naturally object against this discrimination because we'd feel entitled to be able to vote. The same applies for elderly people now.