Because it considers it an empty or unknown value, so it sets any type of value for it. You can skip that by specifying its type through the code.