I got punished in elementary school because I didn't say "under God" when reciting the pledge of allegiance. While these means aren't 100% effective, nonparticipation is noticed, is punished, and labeling children as "problematic" for insufficient or wrong religiosity / patriotism can snowball and stick with them for life.