The term URL rewrite is important in SEO, as it makes URLs meaningful and readable. For example, you want to redirect your customers to particular Product/category Pages, URL of that pages is like then the customer can not reach that Product/Category pages.
How to Rewrite URL Programmatically in Magento 2