It can happen as Lucas says. You dock at a station circled by enough allies and far enough in to an invasion and you can end up getting a huge boost to energy, shields, weapons... it all depends on what missions have come through. In the case above, it is obvious that there had been a lot of missions for energy that were overlooked by the comms officer, or just left because it is too much of a detour. Head to the base with the allies and you get all the missions completed in one. It is rare that it happens. but it does and I have witnessed it myself, just not to such a serious extent.
Above a certain level of energy, your ship begins to sustain damage due to the massive amount of power in the system. I believe it was added to stop player collecting all the anomalies on tha map in one go.