(Just an attempt at an answer)
Both an explanation and a prediction seek to minimize the loss of information, but the information under concern differs between the two.
For an explanation, the goal is to make it as human understandable as possible, which is to say, minimize the loss of information resulting from an expert human predicting relevant phenomena.
For a prediction, the goal is to make it as machine understandable as possible, which is to say, minimize the loss of information resulting from a machine predicting relevant phenomena.
The reason there isn't a crisp distinction between the two is because there isn't a crisp distinction between a human and a machine. If humans had much larger working memories and more reliable calculation abilities, then explanations and predictions would look more similar: both could involve lots of detail. But since humans have limited memory and ability to calculate, explanations look more "narrative" than predictions (or from the other perspective, predictions look more "technical" than explanations).
Note that before computers and automation, machine memory and calculation wasn't always better than the human equivalent, which would have elided the distinction between explanation and prediction in a way that could never happen today. e.g., if all you have to work with is a compass and straight edge, then any geometric prediction is also going to look like an explanation because we humans grok the compass and straightedge in a way we'll never, without modifications anyway, grok the more technical predictions modern geometry can make. The exceptions that prove the rule are very long geometric methods/proofs, which strain human memory and so feel more like predictions than methods/proofs that can be summarized in a picture.
As machines get more sophisticated, the distinction will grow larger, as we've already seen in debates about whether automated proofs with 10^8 steps are "really proofs" - this gets at the idea that if the steps are no longer grokable by humans, then it's just a prediction and not an explanation, and we seem to want proofs to be both.
It’s true that a key trait of good explanations is that they can be used to make accurate predictions, but I think that taking prediction to be the point of doing science is misguided in a few ways.
Firstly, on a historical basis, many of the greatest scientists were clearly aiming for explanation not prediction. Astronomers like Copernicus and Kepler knew what to expect when they looked at the sky, but spent their lives searching for the reason why it appeared that way. Darwin knew a lot about the rich diversity of life on earth, but wanted to know how it had come about. Einstein was trying to reconcile Maxwell’s equations, the Michelson-Morley experiment, and classical mechanics. Predictions are often useful to verify explanations, but they’re rarely the main motivating force for scientists. And often they’re not the main reason why a theory should be accepted, either. Consider three of the greatest theories of all time: Darwinian evolution, Newtonian mechanics and Einsteinian relativity. In all three cases, the most compelling evidence for them was their ability to cleanly explain existing observations that had previously baffled scientists.
We can further clarify the case for explanation as the end goal of science by considering a thought experiment from Deutsch’s book. Suppose we had an “experiment oracle” that could predict the result of any experiment, but couldn’t tell us why it would turn out that way. In that case, I think experimental science would probably fade away, but the theorists would flourish, because it’d be more important than ever to figure out what questions to ask! Deutsch’s take on this:
The question is now: how does this focus on explanations tie in to other ideas which are emphasised in science, like falsifiability, experimentalism, academic freedom and peer review? I find it useful to think of these aspects of science less as foundational epistemological principles, and more as ways to counteract various cognitive biases which humans possess. In particular:
We can see that many key features of science counteract these biases:
But imagine an alien species with the opposite biases:
In this alien species, brave iconoclasts who pick an unpopular view and research it extensively are much less common than they are amongst humans. Those who try to do so end up focusing on models with (metaphorical or literal) epicycles stacked on epicycles, rather than the clean mathematical laws which have actually turned out to be more useful for conceptual progress in many domains. In formulating their detailed, pedantic models, they pay too much attention to exhaustively replaying their memories of experiments, and not enough to what concepts might underlie them. And even if some of them start heading in the right direction, a few contrary pieces of evidence would be enough to turn them back from it - for example, their heliocentrists might be thrown off track by their inability to observe stellar parallax. Actually, if you’re not yet persuaded that this alien world would see little scientific progress, you should read my summary of The Sleepwalkers. In that account of the early scientific revolution, any of the alien characteristics above would have seriously impeded key scientists like Kepler, Galileo and others (except perhaps the eidetic memories).
And so the institutions which actually end up pushing forward scientific progress on their world would likely look very different from the ones which did so on ours. Their Alien Royal Society would encourage them to form many small groups which actively reinforced each other’s idiosyncratic views and were resistant to outside feedback. They should train themselves to seek theoretical beauty rather than empirical validation - and actually, they should pay much less attention to contradictory evidence than members of their species usually do. Even when they’re tempted to change their minds and discard a theory, they should instead remind themselves of how well it post-hoc explains previous data, and put effort into adjusting it to fit the new data, despite how unnatural doing so seems to them. Those who change their minds too often when confronted with new evidence should be derided as wishy-washy and unscientific.
These scientific norms wouldn’t be enough to totally reverse their biases, any more than our scientific norms make us rejoice when our pet theory is falsified. But in both cases, they serve as nudges towards a central position which is less burdened by species-contingent psychological issues, and better at discovering good explanations.
* Note that this might mean the aliens have different standards for what qualifies as a good explanation than we do. But I don’t think this makes a big difference. Suppose that the elegant and beautiful theory we are striving for is a small set of simple equations which governs all motion in the solar system, and the elegant and beautiful theory they are striving for is a detailed chart which traces out the current and future positions of all objects in the solar system. It seems unlikely that they could get anywhere near the latter without using Newtonian gravitation. So a circular-epicycle model of the solar system would be a dead end even by the aliens’ own standards.