The main purpose of lubricants is to allow people to enjoy a more silky and comfortable experience during sex.
Moreover, the use of lubricants during anal sex ensures a minimum of physical safety (the anus and rectum cannot secrete fluid to protect the skin and organs in the same way that the penis and vagina can).