ADHD and autism are diagnosed based on behaviors. This might work for cases at the more extreme end of the spectrum, but when it comes to trying to identify more mild cases, you are going to start seeing a lot of overlap in behaviors of the larger population. Couple that with extra funding for kids who can be said to have ADHD and autism, and you get a recipe for overdiagnosis.
Maybe it is worth it to try to make sure fewer kids with the issue slip through the cracks at the expense of diagnosing kids who don't actually have it. Maybe it's not, but it makes sense why it can happen.