I was only following a video tutorial
Yes, and that's what happens. There's a reason why we discourage most video tutorials
Seriously, there are only very few about SFML that I can recommend in good conscience, e.g. those of Vittorio Romeo. Others, like CodingMadeEasy, have repeatedly shown that their tutorials teach questionable habits, of which people have to get rid in this forum afterwards. Don't hesitate to search the forum for past discussions about them, there are tons of concrete examples and arguments.
And in case you're talking about C++ video tutorials, matters are even worse. I'd say you cannot meaningfully learn the C++ programming language without
a good book. You won't even save time -- eventually you have to learn everything the hard way, which takes much longer.
But please explain how that is causing my entities to move each time?
I don't understand your problem. Could you follow the instructions
here and describe it again?