RAM can be read and written to anytime the CPU commands it, but ROM is pre loaded with data and software that never changes, so the CPU can only read from it.