(To) Bat/Play for Both Teams

What does the idiom “(To) Bat/Play for Both Teams” mean?

Definition:

To be bisexual.

For example:

“Jake bats for both teams. You’ll see him with women, but he’s had several relationships with guys.”

Reply