Why do people open restaurants?

Sorry if this the wrong sub. This questions bothers me for a time now.

For me it seems like opening a restaurant comes with a ton of work, you can lose a lot of money quickly but it's very hard to make a ton of money.

Can anybody give me insights why this seems so attractive to a lot of people?