It is true that because the earth has mass it also has a gravitational field.
Every other mass in Creation experiences a gravitational force that
attracts it toward the center of the Earth, and the Earth experiences
a gravitational force that attracts it to every other mass in Creation.