TL;DR:
Christian Bale isn't in the movie as he wanted to leave the role after the third Dark Knight film. Ben Affleck was the choice to replace him.
Long Answer:
Christian Bale** certainly said he was jealous, but that by no means indicates he wanted the role himself. To quote from USA Today:
The former Batman ended his tenure as the masked vigilante with The
Dark Knight Rises, but that didn’t stop him from entertaining the idea
of going back to the role, he told Empire Magazine (via Comic Book
Movie). So even though he knew it was coming, he was still shocked
when he heard Ben Affleck had been cast as Batman in Zack Snyder’s
upcoming Batman vs. Superman: Dawn of Justice.
I’ve got to admit initially, even though I felt that it was the right
time to stop, there was always a bit of me going, ‘Oh go on… Let’s do
another.’ So when I heard there was someone else doing it, there was a
moment where I just stopped and stared into nothing for half an hour.
But Christian Bale got over his existential crisis and even offered a
couple pointers to Ben Affleck.
But I’m 40. The fact that I’m jealous of someone else playing Batman…I
think I should have gotten over it by now. I haven’t spoken with Ben,
but I emailed him offering bits of advice that I learned the hard way.
I would imagine he is doing everything he can to avoid anything that I
did.
In other words, he stopped because he felt it was the right time to stop. It didn't mean he still didn't get a little jealous at hearing who had replaced him - but ultimately, the decision to stop was his. He left the role of his own volition.
As for why Ben Affleck was chosen to replace him. From Zack Snyder, the director of the film:
Ben provides an interesting counter-balance to Henry’s Superman. He
has the acting chops to create a layered portrayal of a man who is
older and wiser than Clark Kent and bears the scars of a seasoned
crime fighter, but retain the charm that the world sees in billionaire
Bruce Wayne. I can’t wait to work with him.
Ultimately that decision has divided fans and only time will tell how worthy a choice he is as the new Batman.
Edit:
To add some further info on why Christian Bale left, this is from ScreenRant:
“We were incredibly fortunate to get to make three. That’s enough.
Let’s not get greedy…Chris always said he wanted to make it one film
at a time. And we ended up sitting there looking at each other, saying
‘We’re about to make the third.’ We never really knew if we were going
to get to be there, but if that was how it was going to be, this was
where it should end as well.”
Later in the same article, he is asked about what he knows about the upcoming Batman movie. He responded:
“I have no information, no knowledge about anything. I’ve literally
not had a conversation with a living soul. I understand that they may
be making a Justice League movie, that’s it… It’s a torch that should
be handed from one actor to another. So I enjoy looking forward to
what somebody else will come up with.”