Why do you call it gambling? The market maker doesn't want to take a position on the stock, that's why he tries to get out quickly if it starts moving. He just wants to provide liquidity (be willing to buy and sell to anyone at any time, so that buyers don't need to wait for a matching seller to come along), and collect a small fee for that in the form of a spread.