not sure why the electrical line was marked.
I'll bet your neighbor had their property marked for some digging. They always mark the entire property, even if you only need the front yard done (for example.). If there are more lines buried their, you will find some more paint or flags there in the next day or two.