Java applets run in browsers because browsers include a Java Virtual Machine (JVM) or Java plug-in that executes the applet bytecode. The JVM provides the runtime environment necessary for applets to function within the browser's security sandbox. Modern browsers no longer support applets due to security concerns.