Cloaking in SEO is used to boost the search engine result page (SERP) rankings of pages by misleading the crawlers into thinking that the content on a page is about a certain topic, which it isn’t. Some examples of this are:
Displaying or revealing keywords only to crawlers and not to users because crawlers can help get a higher page rank
Providing different forms of media to the users while only offering an HTML text to search engines