The FAQ has some good answers about this. Static electricity was considered just another weird part of nature, and the Greeks and Romans, at least, studied it. The natural world was full of mysteries for the ancients, so static electricity didn't necessarily stand out to them among all the other wonders.