It's likely you're asking a playful question, but here's a fun way to think about it:
* Nature: The stars were "invented" by nature itself through the process of gravity pulling together massive amounts of gas and dust, causing them to ignite and shine.
* Astronomy: Astronomers have been studying and understanding stars for thousands of years, so in a way, they've "invented" our understanding of them.
Let me know if you have any other questions about stars or space!