It wasn't magic. You deliberately sought to gain experience in computer programming. The author is saying that you can't tell a 22-year-old woman with established interests that she should go into computer programming because "there aren't enough women in tech". The woman has to decide to go that way on her own, as you did.