There are many examples of Hilbert spaces that one might not immediately think of as vector spaces. Many famous examples are actually spaces of functions.
For example, $L^2[0,1]$, the space of square-integrable functions on $[0,1]$, is a Hilbert space. The elements of $L^2[0,1]$ are functions; they are not vectors in the "high-school" sense. Nonetheless, you can add them, and you can multiply them by scalars, just like you can do with ordinary vectors.
In fact, $L^2[0,1]$ has something else in common with more familiar spaces of vectors. It has a "basis": the functions $\exp(2\pi n i x)$ with $n \in \mathbb N$. Indeed, every $f \in L^2[0,1]$ is equal (in a certain sense) to a sum of these exponentials of the form
$$ f = \sum_{n \in \mathbb N} c_n \exp (2\pi n i x).$$
Perhaps you recognise this kind of expansion: it is the Fourier series of $f$.
Moreover, there is a notion of a "dot product":
$$ \langle f , g \rangle = \int_0^1 f^\star g = \sum_{n \in \mathbb N} c_n^\star d_n,$$
where $f = \sum_{n \in \mathbb N} c_n \exp (2\pi n i x)$ and $g = \sum_{n \in \mathbb N} d_n \exp (2\pi n i x)$. If you are indeed a physicist as Matt Samuel claims, you will recognise this as the pairing between "bra"s and "ket"s in quantum mechanics.
So why should you define the formal notion of a vector space, or of a Hilbert space? It is to enable you to treat many different kinds of spaces on the same footing. Once you have checked that a certain space satisfies the definition of a Hilbert space, you are guaranteed that all the general theorems about Hilbert spaces apply to the space you are dealing with, whether the objects in your space are genuine vectors, or whether they are functions, or something else entirely.
For example, the equation I wrote down,
$$
\langle f , g \rangle = \sum_{n \in \mathbb N} c_n^\star d_n ,$$
looks very similar to the dot product of two vectors in $\mathbb C^3$, $$\vec{v}.\vec{w} = \sum_i v_i^\star w_i$$
One can prove that a formula of this kind holds for any (separable) Hilbert space, regardless of context.
As people have mentioned in the comments and in the other answer, the process of checking that a given space really does satisfy the definition of a Hilbert space is both important and non-trivial. Not every infinite dimensional inner-product space is a Hilbert space, and if you try to apply Hilbert space theorems to non-Hilbert spaces, you can get in trouble.