Neural networks as used in AI are inspired by the brain in much the same way that OOP was inspired by the way cells work--neither one is an attempt to faithfully recreate the actual operations of an extremely complex (and only partially understood!) biological system.