According to one theory, the nuclei of galaxies are primary black holes, around which galaxies formed from the matter formed during the Big Bang. Just as planetary systems formed from a gas-dust disk around a star.
Let me remind you. A primary black hole is a hypothetical type of black hole that was formed not due to the gravitational collapse of a large star, but in superdense matter at the time of the initial expansion of the Universe.