They lose the same money if the stock goes down, whether or not they lend it to you. Either way, they own stock whose price went down.
But by lending you the stock, they collect the fees and interest you pay them.
(Compare: why would a bank lend you money when they _know_ that because of inflation it will have less value when you pay it back? They guess how much inflation there will be and charge an interest rate that exceeds the likely inflation rate. And the money would lose the same value from inflation whether or not they lent it to you.)