The Judge himself actually answered this question at the end of yesterday's session. This is Trump's lawyers own doing.
At the beginning of the trial they decided (one suspects at their client's insistence) to dispute that Ms. Daniel's account of events ever happened at all. So while her credibility might not necessarily have been at issue here, the Defense chose to made it so.
Here's how Judge Merchan put it ("Mr. Blanche" is Trump's lead counsel):
Mr. Blanche in your opening statement, you denied there was ever a
sexual encounter between your defendant and Stormy Daniels.
Your denial puts the jury in a position of having to choose who they
believe: Donald Trump, who denies that there was an encounter, or
Stormy Daniels, who claims that there was.
The more specificity Daniels provides the better that can weigh her
credibility.
... and in conclusion ...
You said, "My client never had a sexual encounter": that pits
your client against Ms. Daniels. So the prosecution can rehabilitate
her credibility.
YOUR MOTION FOR A MISTRIAL IS DENIED. I’LL SEE YOU TOMORROW AT 9:30