The Quran asks: were they created from nothing, or are they their own creators? And it says that Allah is the First and the Last, the Outward and the Inward. Muslim thinkers have argued that the principle that everything needs a cause applies to things that begin to exist, such as the universe. If a chain of causes went back without end, nothing would ever start, so there must be a first cause that depends on nothing else. That is what Muslims mean by Allah. The One who created is not another created thing.
This is why the short chapter of the Quran on Sincerity says that Allah neither begets nor was begotten: He has no parents and no origin. The Prophet Muhammad ﷺ foresaw that this question would come into people's minds. He said that Satan comes to one of you and asks, who created this and who created that, until he asks, who created your Lord? When it reaches that point, he said, seek refuge in Allah and stop. Scholars explain that the question, as phrased, treats the Creator as though He were a created being, which He is not.
Muslims do not claim to fully understand what it means to have no beginning. They hold that it makes more sense than saying that everything came from nothing, without cause. If the question troubles you, it is a sincere one, and Islam does not shut it down: it asks you to keep thinking, to read the arguments and to ask for guidance.