Here is some philosophizing which won't directly answer your question because I won't say the words "model category" anywhere.
We know that in ordinary category theory a monomorphism $f : x \to y$ is a map such that for all $z$ the induced map $\text{Hom}(z, x) \to \text{Hom}(z, y)$ is injective. Let me rephrase this as follows: it is a map such that, if you give me a map $g : z \to y$, then "lifts of $g$ to $x$ along $f$" is a truth value. This means that I either can't do it or I can do it uniquely.
The universal map admitting such a lift is the map $f : x \to y$ itself. Lifts of this map correspond to sections of one of the projections $x \times_y x \to x$. There is a canonical lift, namely the identity, which corresponds to the section given by the natural relative diagonal map $x \to x \times_y x$, and the statement that this is an isomorphism precisely encodes the uniqueness of lifts (when they exist).
Now suppose that $f : x \to y$ is a morphism in an $(\infty, 1)$-category, so the induced map $\text{Hom}(z, x) \to \text{Hom}(z, y)$ is now a map of spaces. What is the correct analogue of "injective" here? Well, if $g : z \to y$ is a map, then "lifts of $g$ to $x$ along $f$" is now a space (the homotopy fiber of the above map based at $g$), and "truth value" now means "either empty or contractible." That is, either I can't lift $g$ to $x$ or I can lift it uniquely up to a contractible space of choices. An inspection of the long exact sequence in homotopy shows that this is equivalent to the first definition.
Again there is a universal map admitting such a lift, namely $f : x \to y$ itself. Lifts (here I always mean homotopy lifts) now correspond to sections of one of the projections $x \times^h_y x \to x$, and up to replacing pullbacks with homotopy pullbacks the story looks exactly the same as above, and we get the second definition.