Something else entirely — inFamous is a standalone game, not a Sly entry.
The rumour that Sucker Punch might follow it up with Sly 4 turned out to be half right. A fourth Sly game does exist, but it arrived years later, was handled by a different studio, and had no connection to inFamous beyond the shared origin.
At the time, almost nothing was confirmed — no title, no outline, no release window. That information vacuum is precisely why the two games kept getting conflated. When details about a project are scarce, people fill the gap with whatever seems plausible, and "the studio that made Sly is making a dark superhero game, so it must be Sly" is a very natural leap that happens to be wrong.