The iPhone 7 and 8 don’t have a physical home button. Instead, the feel of pressing a button is recreated by what Apple calls the Taptic Engine. When you touch the home button, the Taptic Engine sends out a small vibration. It feels really like pressing an actual button.
Source: How-To Geek