The purpose of learning JavaScript events is to understand how web pages respond to user interactions such as clicks, typing, and form submissions. Events allow developers to make applications interactive and dynamic by executing code based on user actions. This knowledge is essential for building responsive web applications and handling user interactions effectively in Salesforce Lightning Web Components and Visualforce JavaScript.