On my example, I created my 1st list called “Companies”. This is my lookup list. Then, I created a 2nd list. This list will be my main list that will use the InfoPath form.
As you can see on the InfoPath form, the lookup dropdown is showing ID values from Companies list.
To change these values, right click the Companies lookup dropdown on Design mode then choose Drop-Down List Box Properties.
Change the Display Name option to Title or the column that you want to be shown on your dropdown.
Then click OK, your lookup dropdown is now showing text values but bear in mind that the real value of that dropdown is ID (integer).