The array is allocated in memory but each item in the area is uninitialized just like an uninitialized variable. In other words, the items in the array have not had their values set and are just taking the value that was held in memory until you explicitly assign them a value. Sometimes this value is 0 or close to it, but there is no guarantee what was in memory at those locations. Here is the note on the reference page:
empty, unlike zeros, does not set the array values to zero, and may therefore be marginally faster. On the other hand, it requires the user to manually set all the values in the array, and should be used with caution.
So unless you have a certain use case, go with zeros
or something else. I'll also note that typically Python does not allow you to just declare a variable without initializing it, which is why this behavior might seem strange.