Government spending is also a part of GDP. This includes expenses like infrastructure, salaries paid to government workers, stimulus checks, social security, etc.