The expression comes from card games and is taken to mean (usually) that you are forced to play a card that you wouldn't if you were in a stronger position.
So, if someone has forced your hand, you are unlikely to have any alternative to choose.
Dave