Question:
Why are there 4 lines seperating the gemara and rashi
Answer:
You are correct that most gemoras have 4 lines separating the gemara and Rash (and Tosefos) because that is the way the Vilna Shas was printed. Some want to say that it comes to hint that we should revise what we learnt at least 4 times! (There are 5 lines separating the gemara from Tosefos in the Temurah 3,4 & 6 Chapter, perhaps to tell that they should be revised 5 times)!
Sources: