Why is fast food just as expensive as eating out now?

When I was a kid in the 2000s, a burger or sandwich cost $1 to $3. Now, that’s barely enough for a drink. A McDonald’s cheeseburger runs about $4, and a full meal is close to $10. Meanwhile, I can visit a local restaurant, pay roughly the same or just a bit more, and enjoy a meal that’s noticeably higher in quality and taste. How did we reach this point?