Writer has what is probably intended to be a useful feature - if you click in an area of the page where there is as yet no text, it will put a paragraph mark there, and insert leading spaces from there to the margin. It usually indicates that it plans to do so with a right or left-pointing triangle.
I hate this behaviour. It’s far too easy to trigger by mistake, and a pain to fix. How can I make it stop permanently?