Entrainers work by forming an azeotropic mixture with one of the reaction components, which alters the boiling point of that component. This can either make it easier to remove the component by distillation or help in maintaining the optimal conditions for the catalytic reaction. By stabilizing or destabilizing specific components, entrainers can improve the selectivity and yield of the desired product.