How does holy script become an art form in Islamic art and architecture?

How does holy script become an art form in Islamic art and architecture?