According to cosmological constant, dark energy should have a constant density but since the universe is expanding so is the volume of the universe and so should the mass of dark energy.
But how does dark energy gain mass or energy?
According to cosmological constant, dark energy should have a constant density but since the universe is expanding so is the volume of the universe and so should the mass of dark energy.
But how does dark energy gain mass or energy?
Not all models of dark energy assume it constant.
However, when this is assumed true, dark energy is usually compared to the energy density of the vacuum. In other words, while the Universe expands, the dark energy increases proportionally, so its ratio with the Universe volume (the density) stays constant.
Or, better, we generally believe those models where the dark energy is a constant because they fit better our observations of the Universe, in particular the Big Bang model, which describes how our Universe evolves.
If you like some math, you can have it here.
You're missing the point: it's called "dark energy" not because it's dark or because it's energy. The name is the cosmological equivalent of the "black box" in a laboratory setting. Until we figure out what the heck it is, there's no reason for it to follow our known laws.
The energy of universe increases, that energy is contributed to dark energy. In order for accelerated expansion of universe, dark energy would have to have negative pressure.
According to first law of thermodynamics $\mathrm{d}U=\mathrm{d}Q-P\mathrm{d}V$,since the universe is an isolated system and the heat doesn't change $\mathrm{d}Q=0$, so it's expected by thermodynamics that the universe gains energy which is attributed to dark energy.