An espresso machine has two holes to create a balanced extraction of espresso. The first hole injects hot water into the coffee grounds, while the second hole allows steam and pressure to build up, forcing the brewed espresso out of the machine. This process creates a rich and concentrated flavor that is characteristic of an espresso.