I don't know much about Islam, but what's being described isn't uncommon for lapsed Christians. I know plenty of people in my orbit (including me) who went to mass on Christmas Eve and Easter as children, but literally wouldn't be able to answer if the curch they went to was Catholic or Protestant.