The main purpose of using keywords in SEO is to attract more visitors to a website. Using relevant keywords, websites can increase their visibility in search engine results pages (SERPs) and drive more organic traffic to their site.