Consider the cosmological constant as an analogy. The equation to describe it exists and we still don't know what physical principles underpin it.
That's not exactly true for the cosmological constant.
If you take a course in general relativity, you'll do a shedload of maths, guided by physical theory, before you get to the point of deriving the equation that has the cosmological constant in it.
Einstein's introduction of the cosmological constant was not just a guess or a piece of recreational mathematics. It was motivated at the time by his belief that the universe was static (i.e. not expanding or contracting). Since the gravitational force between bits of mass is always attractive (no experimental exceptions have been found, so far), something else was needed to provide the necessary countering repulsive force. So, the theory was motivated by experience and observation.
A relatively short while later, of course, it was discovered that the universe is expanding. When Einstein found out about that he wanted to remove the cosmological constant from his theory, calling it his "biggest blunder".
What goes around comes around, so
now we know that the universe is not only expanding but also the expansion appears to be
accelerating. Now the need for the cosmological constant is once again motivated by evidence, observation.
So, you can see that the cosmological constant is there to make a mathematical model consistent with observed facts about nature, and to allow that model to make quantitative, testable predictions.
Physically, the cosmological constant is a sort of "anti-gravity" repulsive force. You are right that we don't yet have an explanation for the
cause of that force, but we* are reasonably confident it has to be there - that's backed up by observation and experiment.
One other thing: the mathematical role that the cosmological constant plays in general relativity is not arbitrary. Its appearance in Einstein's equations is not due to Einstein randomly picking a particular mathematical function. There's a whole line of physical reasoning which leads to its appearance.
---
* By "we", I mean this is the current mainstream view among cosmologists. Having said that, I'm sure that any cosmologist worth her salt has considered the alternative possibility that there's something about gravity (or the observations) that we don't understand well enough yet, which might be able to explain the apparent acceleration without the need for a cosmological constant.