Crayon Physics uses the open source Box2D physics engine.
There are so many physics drawing games that it is hard to say which came first. For example there also was one by Microsoft 2 or 3 years ago. It doesn't really matter in my opinion. Once there were nice 2D physics engines like Chipmunk and Box2D such games started to emerge.