Bayern Munich and Bayer Leverkusen, the Bundesliga's top two teams, have both suffered surprise home defeats.