Demystifying the Slash Pattern in Attention: The Role of RoPE