It's pretty straightforward. The applicant tracking system scans your resume for job-related keywords and determines if you are a good match for the position. That means you're doomed to fail if you're not using an optimized ATS resume template.