You scrobble to record your listens, and then based on your listening history, there are many ways (in scrobblers and services that integrate with them) to get recommendations. Example: https://resources.onestowatch.com/how-lastfm-recommends-new-...