You have to look for the closest match, and then the profit comes when the horse wins to get the free bet.
For example let’s say it costs you £5 to “set up” the bet, with a free £50 bet from bet365 you have to find a winner once in a number of bets to be profitable so the odds are in your favour.