There is a way that is directly connected to the Excel file in Power BI Desktop, create reports in Power BI Desktop and publish reports to Power BI Service.
There is another way where Excel to tell Excel, that your two columns are a „table“ - instead of just a bunch of cells.