The time count begins at noon of day 1. The solar day is complete when the sun is again overhead on day 2. The sidereal day is complete when the star is again overhead, which occurs before the sun is overhead. The difference is almost 4 minutes.
Image: © M. Tomczak; Creative Commons license