Why weren’t these two couples endgame

Both of them are way better than the people they got together with at the end, being Diggie and Spencer