Gaza before Oct 2023 was a de-facto state. It had a government, a well-defined border, guarded by a military force, collected taxes, police force, etc. It did not have its own currency, but neither does e.g. France.
De-facto. Not internationally recognized. And being separate helped hampering the establishment of a single Palestinians state.