You can be tempted internally or externally.
I might be tempted to eat a candy bar because I’m hungry and I smelled one. I guess if I entertained the possibility in my mind I sinned.
or
I might be tempted by John with a candy bar but not dismiss him out of hand. If said no and didn’t entertain the possibility in my mind I didn’t sin.
I think Jesus’s temptations were the latter.
Um, let’s pretend eating a candy bar is a sin for the sake of my example.
Good point. You do have Jesus, though, wishing that he didn’t have to go through with the crucifixion but willing to do what His Father willed. This gives people a feeling that he was tempted internally, and from that they conclude that he was capable of rebellious thoughts. If thinking about giving into a temptation is already a sin, then the next step follows from that. I’m not saying that’s good theology, but it’s not hard to see why many people think about this as they do.