I was a non-resident of Canada in 2022 and made some income in the other country I was residing. Why is TurboTax saying I owe tax on that?

I inserted the figures into the "Foreign Income" portion of the form, and TT says I owe tax on it. There's another section for Statement of World Income - would I have to fill out the same figures there too? Would it double count? I'm confused.