For example, GDP includes money spent for renting an apartment, although no goods are produced in this case.
Because it measures all the goods and services produced in a country over the course of an year.
I know of a way to inflate it as much you want, but I don't think I will ever be in a position to use it.