Both definitions are true that you have mentioned. Why? Because there are really just 2 broad definitions of fields:
- Mathematical fields
- And physical fields
In physics, we use both for our study of the natural world. Mathematical fields are really just that, math. They can be
- Scalar (number) fields that can describe, for example, temperature
- Vector fields that can describe, for example, magnetic fields
- Tensor fields that can describe, for example, spacetime curvature in General Relativity
- Spinor fields that can describe, for example, Fermions in QFT such as Electrons (Dirac spinors)
To expand on my vector field point above, the magnetic field can be described as (one of Maxwell's equations):
$$\nabla \times \mathbf{B} = \mu_0 \left(\mathbf{J} + \epsilon_0\frac{\partial \mathbf{E}}{\partial t} \right)$$
And the $B$ field is the magnetic field (a physical field that depends on space/location), and we can rewrite it as
$$\mathbf{B} = \nabla \times \mathbf{A}$$
Where $A$ is the vector potential. In other words, we can define the physical field $B$ as a mathematical field $A$, which is just a vector field.
And we basically do the same mathematical prescription for any physical field in physics which we define it as some underlying mathematical field, whatever that may be: spinor, scalar, vector, tensor, etc.
Why do we do this? Well, mathematical fields seem to do a very good job of describing our Universe and we can use them to make predictions and so on. Mathematical fields are models of the physical fields that nature uses and they are just that, models.
Also, to expand on the 2nd definition that you mentioned, fields are a great way of making sure that interactions do not affect particles and objects instantly, but rather are limited to the speed of light. The effect of the field has to travel outward (at the speed of light or some other velocity) like a wave on water, where it takes some finite time for it to reach its destination.
When you learn about retarded fields in EM theory, my above point (about fields propagating outward to interact with particles) will start to make more sense (if it hasn't already).
So we can construct a hierarchy of fields:
mathematical fields $\rightarrow$ physical fields $\rightarrow$ what the Universe is.