Definition $(1)$ is the definition of a base $\Bbb B$ for a given topology $\tau$ on a set $X$. A topology is known once you know a base for it: we can say, given $\Bbb B$, that
$$\tau=\{\bigcup B': B' \subseteq \Bbb B\}\tag{a}$$
Proof: $\supseteq$ follows from the fact that $\Bbb B \subseteq \tau$ and topologies are closed under arbitrary unions. $\subseteq$ is a reformulation of the second part of definition $(1)$.
Another slightly alternative way to define the topology from a base is inspired by the way metric topologies are defined by their base of open balls:
$$O \in \tau \iff \forall x \in O: \exists B_x \in \Bbb B: x \in B_x \subseteq O\tag{b}$$
Proof: $\Rightarrow$: By the definition $(1)$ of a base $O$ is a union of some family from $\Bbb B$ and if $x \in O$, there must be such a $B_x$ from this union, as claimed. $\Leftarrow$ we can, when the right hand side holds, easily see that $O=\bigcup\{B_x: x \in O\}$: right to left inclusion as all $B_x$ are a subset of $O$, so their union is too, and left to right as each $x$ is covered by its own $B_x$; then note that $O \in \tau$ by the closure under unions axiom of topology again. QED.
So knowing a base is knowing the topology and that's part of the reason that many topological spaces are defined by defining a collection of subsets of $X$ and declaring it to be a base for some uniquely defined topology $\tau$, using $(a)$ or $(b)$ as a guidance.
But you cannot specify just any $\Bbb B$ as such a collection to define a topology that way: that's where the conditions of $(2)$ come in: following $(a)$, the first part of $(b)$ follows from $X \in \tau$ and the second is a reformulation of a consequence the fact that base sets are open and so their intersection must be a union of base elements. So the conditions under $(b)$ are necessary for definition $(a)$ to work. And if $(b)$ holds, define $\tau$ as in $(a)$, $\emptyset \in \tau$ as $B'=\emptyset$ is allowed, $X \in \tau$ we already saw, closedness under all unions is clear, as a union of union is a union. The finite intersection follows from the second part of $(b)$ plus simple set theory:
$$\bigcup B' \cap \bigcup B'' = \bigcup\{B_1 \cap B_2: B_1 \in B', B_2 \in B''\}$$
and the intersections of base elements are in $\tau$.