This is the precise form of the slogan “a Galois extension is a principal bundle.” The field inclusion F↪K reverses direction under Spec, producing
P=SpecK⟶X=SpecF.
Let K/F be a finite Galois extension and let G=Gal(K/F). Then P→X is finite étale and connected. The action of G on K by F-algebra automorphisms induces, contravariantly, an action on P. With GX the constant finite group scheme, the map
P×XGX⟶P×XP,(p,g)⟼(p,p⋅g)
is an isomorphism. Hence P→X is a GX-torsor on the étale site of X, in the sense of a G-torsor on a site. The algebra behind the isomorphism is the Galois tensor-product identity.
Conversely, a connected finite étale GX-torsor over SpecF has affine total space SpecK, where K/F is a finite Galois extension with group G.