The constant comes from the solution to a differential equation. You have to go with what you have to assign a value to it. Until you know better, you only have what you have to work with.
"His remedy for this dilemma was to add a new 'antigravity' term to his original equations. It enabled his mathematical universe to appear as permanent and invariable as the real one. This term, usually written as an uppercase Greek lambda, is called the 'cosmological constant'. It has exactly the same value everywhere in the universe, delicately chosen to offset the tendency toward gravitational collapse at every point in space."
"A simple thought experiment may help illustrate the nature of Lambda. Take a cubic meter of space and remove all matter and radiation from it. Most of us would agree that this is a perfect vacuum. But, like a ghost in the night, the cosmological constant would still be there. So, empty space is not really empty at all -- Lambda gives it a peculiar 'latent energy'. In other words, even Nothing is Something!" "Einstein's fudged solution remained unchallenged until 1922 when the Russian mathematician Alexander Friedmann began producing compelling cosmological models based on Einstein's equations but without the extra quantity. Soon thereafter, theorists closely examining Einstein's model discovered that, like a pencil balanced on its point, it was unstable to collapse or expansion. Later the same decade, Mount Wilson astronomer Edwin P. Hubble found direct observational evidence that the universe is not static, but expanding."
"All this meant that the motivation for introducing the cosmological constant seemed contrived. Admitting his blunder, Einstein retracted Lambda in 1932. At first this seemed to end the debate about its existence. Yet decades later, despite the great physicist's disavowal, Lambda keeps turning up in cosmologists' discussions about the origin, evolution, and fate of the universe."