It is very well studied that the entire concept of “nation”, “homeland” and thus patriotism in the modern way began to develop only at the late 19th century with the adoption of mass media and railways.
Hundreds of thousand of years before this people were loyal to their family (not always) and their community (village, city, craftsmanship, etc.).
If you ever travel to 18th century and ask any ordinary European are they proud to be, say, French or British, they will not get you.