This quesiton has confirmation bias and hindsight fallacy written all over it.
You are asking this question with some kind of "purpose" in mind. The addition of the words "such that they would allow for life", shows that you put additional special value on them for that reason.
This is like being dealt a random hand of cars and ending up with a royal flush and then asking "why were the values of the cards such that they would allow for a royal flush".
Surely you can see how that would be an invalid question to ask.
Now, if you would actually have valid reasons and evidence to think that the deck had been tampered with, and that the hand wasn't actually random, then you could ask that question. But at that point, you're not just assuming "purpose".
So the real questions is: why do you ask that question? What makes you think that this "why" question, actually has an answer?
Sure, there is an explanation for why the constants have the value that they have. But that's a HOW question. Not a WHY question.
We don't know yet.
I guess there are many potential reasons.
Perhaps they only CAN have those values.
Perhaps there's an infinite amount of universe and we just live in the one in which we can live.
Perhaps there are only a couple, or even just one, universe and we lucked out.
I see no reason at this point to make any kind of "cosmic purpose" assumptions.
I see no reason to think that "life" is the point of the universe any more then black holes or expanding space is.
perhaps.
Perhaps.
What "intelligent designer"? What makes you propose this, other then you already believing in one religiously?
The one that requires the least assumptions of unsupported entities.