When a planet passes directly between a star and its observer, it dims the star's light by a measurable amount. Light curves get complicated when more planets are transiting a star. The combined light curves can give us the same information as a single one, it just takes more work from astronomers to pick out each planet in the data.