Most people belonging to a faith will do whatever it takes to raise their child to see only their hereditary faith as orthodox (righteous one) and all others as unorthodox.
If a person was only manipulated by his/her parents to declare their belonging to the Islamic faith at a tender age at which they were unfit to resist the pressures of cultivation but later, once they maybe reach their teens, they start thinking freely and come to terms that their association with the religion in the past was never genuinely theirs (as opposed to some people who do convert of their own volition), is their act considered apostasy and, as such, subject to the sanctions of leaving Islam?