How do "most popular" filters work in online stores

I'll sometimes filter based on "most popular" and the result will be that the top item is som expensive thing that makes me wonder if it's really the most popular. It seems obvious that this might just be a way for the store to manipulate buyers. Does anyone have insight into how these work and is there any real function behind them?