The Phillies' surge had pushed them within three games of St. Louis for the second NL wild-card spot.
But Philadelphia couldn't hold an early 4-0 lead, and Lowrie's two-out put the Astros ahead 5-4.
Matt Dominguez hit a three-run homer for Houston, which has the worst record in the majors.