Your socialized brain was thinking that you were hearing your sister. But your limbic brain (the base biological instinctual part of it) was hearing a woman moaning in the throes of pleasure. The signals from your brain to your cock are filtered and suppressed by your socialized brain. Sometimes however, those signals are so arousing that they overwhelm the filters in your social brain and cause strong sexual responses that are too powerful to ignore.
There is nothing wrong with your situation as long as you respect her privacy. If you handle this right and you and your sister can communicate openly, you have a wonderful window into the mind of a sexual young woman. You could learn much from her that could make you a fantastic lover and nurturer of women.
Linghaman
Very well said, respectfull and scientific advice.