Came here to say exactly this.
Beyond this, the sound engineer and the producers will also work with the musicians to determine the intended audience of the track. If it’s meant to be danced to, you’re going to want to record it at a tempo that’s easy to follow and is a multiple that aligns with other songs that are danced to.
If a set or album is being recorded, the tempos will also have to be considered in comparison to the other songs, to create the right overall feeling. Set and audience combined will inform the max/min of all the songs, and sound engineers usually try to get performers to play to whole numbers in beats per minute.