I know that the lighting system for the models/3d models is used for theatrical effects and for the scene, but is there an in-universe explanation?
Examples:

I know that the lighting system for the models/3d models is used for theatrical effects and for the scene, but is there an in-universe explanation?
Examples:

There is no very good in-universe explanation for this, as Star Trek has addressed this issue incompletely and inconsistently. However, when the Enterprise was being refitted for Star Trek: The Motion Picture, the show's designers realized the same thing you did: Large parts of the film took place in interstellar space where there's no convenient light source, but the viewers needed to be able to see the ship. Perhaps we can assume that the designers of the refit decided that people outside the ship should be able to visually identify the ship.
They (the designers of TMP or the Enterprise, take your pick) came up with the solution of having the ship light itself. If you look closely, you'll see that the ship carries its own floodlights and shines them on select parts of the ship. This wasn't a complete solution, as they still used fill lighting on the model, but it at least added a slight level of realism.
USS Enterprise-A showing self-lighting
This seems to have been abandoned for the Enterprise-D design used in The Next Generation. However, the Enterprise-E displays similar lighting:
As a footnote, in Night, an episode of Voyager, the ship was traveling through a starless void, and the ship was shown to be much, much darker from the outside.
In summary, there's a lot of artistic license included in what you see on-screen. However, we've been thrown a bone in that the ships light themselves, at least a little bit.
Voyager in a starless void
When you think about it, it’s very rare to see the ship at impulse in true interstellar space. Mostly they’re in star systems where the local sun would light the ship at least as well as spacecraft in our own solar system.
At warp it’s hard to say how it works, but there are the rainbow effects so clearly some measure of visible spectrum is present.
I would say because no one would watch a show were all out side shot were blackness, sometimes you just need to remember that they are going to need to take "liberties" to make the viewing experience more fulfilling. When it comes down to it we want to watch good television not necessarily technically accurate TV.