The universe and physics do not require things to "have a purpose." Having a purpose is a philosophical
endeavour, and the unvierse will do what it does regardless of our philosophy of there "being a purpose" for it or not. Cosmology is an intersting subject. We seem to have a firm grip on a lot of the variables involved on how the universe will ultimately "end." One big question mark...