If you're trying to sleep but hear your roommate having sex, it can stir up feelings of jealousy, especially if you're feeling lonely and wish you were experiencing that kind of intimacy too. The awkwardness of the situation can amplify your emotions, making it hard to relax.
To cope, consider using earplugs or music to create a more soothing environment. Alternatively, focusing on self-care or hobbies can help distract you until you feel tired. And if it suits you, masturbating can also be an effective way to relieve tension and help you wind down for sleep.