You can't really go by the current prices because the Ryzen 5000 series are in such short supply and Intel's node issues won't be fixed until next year, so we have a situation which leads to prices being higher than they are.
With that being said, AMD performs better than Intel, so they're charging more.
Charging more because they are the superior product at the moment. Not to mention when you factor in the availability, prices will be more than MSRP. The prices they are charging are realistic as well. When you compare the 5600X @ $299USD MSRP, and the 8700K in it's time for the launch price of $359USD MSRP, it's still one hell of a deal.