system
Given the following post, respond as if you're commenting on Reddit:
human
How does gravity create energy?

Say two big rocks suddenly appear in the middle of space with nothing else for...well, a far ways. They attract each other right? They would move toward each other maybe? Where do they get the energy to move?

...I probably won't understand the answer anyway.
gpt
The problem with magic is it is hard to break a few laws of physics without breaking a whole lot of them.

In your example, the same thing that suddenly created them out of thin air chose to create them in a configuration that had potential gravitational energy.