What does it mean to write a free field scalar as a linear sum of creation and annihilation operators like this?
This is a functional transform, much just like the Fourier transform. You have a bunch of creation/annihilation operators that depend on a parameter p. You transform them into another operator set that depends on x.
Annihilation operators here do not "act" on anything. Rather, they are a subject of transformation. The result of the transformation is another operator that may act on something.