What is the meaning of [TO BET ON THE WRONG HORSE]

TO BET ON THE WRONG HORSE

= To make an incorrect guess about the future

If you think the Queen plans to retire, you’re
betting on the wrong horse!