Here's why:
* Terrestrial planets are rocky planets with solid surfaces. They are made up of heavy elements like iron, nickel, silicon, and oxygen.
* Gas giants are made up primarily of light elements like hydrogen and helium, and have no solid surface.
The Moon is a solid, rocky body, making it a terrestrial object.