Up until about World War II and use in cryptography, number theory was pretty much an un-applicable field of mathematics.
But (integer) numbers and their behavior had huge significance in the ancient worldview, and still do even in our days if you look deep enough. And the Pythagoreans et al applied number theory in e.g. music.