The notion of a random field is defined on Wiki as:
Given a probability space $(\Omega, \mathcal{F}, P)$, an $X$-valued random field is a collection of $X$-valued random variables indexed by elements in a topological space, $T$.
Often definitions include specific classes of sets in order to avoid annoying mathematical cases, or to better match some application. From that perspective, I am not sure why the variables are indexed by a topological space.
I think that by happenstance I am often implicitly working with topological spaces when I work with index sets, but making it explicit in the definition makes me wonder what the motivation was.
Why are random fields defined with respect to an index set that is an element of a topological space?