I've been recently re-thinking about my knowledge of compacts sets and I've realized that other than the definition and maybe understanding with some struggle some proofs I don't actually see why they're very important. From some questions in this website which I used as sort of "soft discussion" about the subject it is my understanding that compactness might allow to state if certain functions are bounded or not.
However I came across this question, and I was considering the second answer specifically (more specifically the bit below):
Unlike their Holder cousins, most Sobolev spaces are reflexive Banach spaces. Reflexivity is a highly desirable feature for variational problems because it gives a little bit of compactness enough so you can prove the existence of minimizers (or more general critical points) of various energy functionals.
So this made me wonder... Is compactness in general a very highly desirable property that allow to prove existence of solutions of problems in general? If yes, how? I mean what is the general argument that is brought up.
how does knowing that some sets are compacts actually help in proving existence of solutions?