Why was the transporter created for Star Trek?

The transporter was created for the Star Trek series because Star Trek didn't have the budget to land the Enterprise on a planet every week.