Taking exams is not for everyone. People genuinely struggle at times because not everyone is an effective test taker. Although they helps develop effective study techniques, it can cause substantial amounts of stress on a test taker. They don’t really measure knowledge and retention making them at times really ineffective. They may be beneficial to some people but answers vary depending on who you ask.
Hope that helps!