I just got this car and I need to know why they put this oil in my 2018 Sonata

That seems odd. If you have a 2.4L, it should be 5W-20. It shouldn’t be a huge issue, but I’d suggest asking them to replace it with the correct oil.