Why don't grants from publicly-funded organizations systematically demand code and data to be released?
Because there has not been a strong enough push to require it and some researchers prefer to keep code/data confidential. This is currently a topic of discussion at the national level led by organizations such as EFF. This is hopefully a situation that will soon change for the better.