I could copy public domain code,modify it and sell it with profit.
yes, you could. you could also do the same thing with gpl-licensed code. you could also do the same thing with bsd- or mit-licensed code.
the difference is that releasing code into the public domain doesn't promote excessive extension of copyright laws, while releasing it under the gpl does.