I didn't get into tech because it was interesting, at least not initially. I got into computers because the movie War Games was cool as hell and I wanted to be like Matthew Broderick's character in that movie. I was 5 or 6 when I saw it.
It was only after I got a Commodore 64 that I learned that it was going to be really difficult to do the things in the movie. But the idea that with enough practice I could be like that was very appealing. I don't think girls today have anything similar.
Let's be honest, very few children are that into math or computer science where it becomes an end unto itself. That comes much later. Younger males in the industry today seem to have grown up in the gamer->modder->hacker path that didn't really exist when I was a kid, and certainly doesn't exist for girls today.
And if you're asking the tech industry full of nerds to fix this problem for kids of any gender you're going to get something completely misguided.
Complain to Hollywood. When the military wants to recruit people they don't change to be more appealing, they help make "Top Gun."