In all cases could have happened means that there is an a alternative to that which did , will happen .
Quitting the band could have had a different outcome , what if the band had been called the Beatles?
If you had studied harder you could have passed the exam . That is only guessing but it is likely more study would have given a better result.
That could have been Tom, is also only guessing .