Persumably you want to get married because you want to share your life with somebody else. If you don't start sharing until you're 40, you've already missed the opportunity to share what are almost certainly the most transformative and significant years of your life. Of course this doesn't mean a later marriage can't be happy and successful too... but it does involve missing out on things that some people care a lot about.