Why does it feel like I face failure more than my peers? I am in a very hard engineering program at university and my tests recently have been way below average while my peers seem to do way better all the time.

Although I have never failed a class before, why does it feel like I face failure more frequently? Why do all negative things happen at once? Why can't I just be like my fucking classmates and get A's on exams? I study longer and harder than them. What is going on? Why does it feel like I am being shit on all the time? Why does the universe hate me? I want some fucking answers. I am so fucking tired of feeling like this. Every semester is like this. I do bad in the beginning and then I eventually pass at the end. Why can't I just be good all semester? I can't stand this feeling. It feels so shitty :(