Because the gender ratio in STEM fields skews heavily towards men.
>What will be in the girls-only code program that might be inappropriate for boys?
I can't imagine there would be anything that was 'inappropriate', though there may be some boys less excited about making a dress light up. Google is using existing gender roles to introduce girls to code and get them excited about STEM, something that may be far more difficult once they grow older.