What is the purpose of the rock plates under ramps in many maps in StarCraft 2?
To avoid completely blocking you from exiting your main base with building in early stages of the game.
These rocks prevent your opponent from building buildings at the bottom of your ramp and trapping you in your base in the early game.
The zerg were particularly vulnerable to this in TvZ back in Wings Of Liberty. The "bunker block" was a harass tactic used by terran against zerg. The terran sends 2 SCV's and builds 2 bunkers at the bottom of zerg's small ramp (or sends 3 SCV's and builds 3 bunkers at the top of zerg's big ramp). 2 bunkers are the perfect size to block all units from exiting the base.
This can be used to prevent the zerg from fast expanding, or to cut off the zerg's expansion from their main base.
All of zerg's low tech units (drones, zerglings) are melee units. So if you have one or two marines standing behind the bunkers while they are being built, zerg can do no damage to the marines and the marines can just pick off the units.
The proper response for zerg to bunker harass in all its forms is to pull about 6 drones to try to kill the SCV building the bunkers and the partially constructed bunker. If that doesn't work, then they will have to build a spine crawler and make some zerglings to finish off the bunkers.
By that time though, they will be behind economically (from having to make units instead of drone, and from lost mining time from having to pull drones to try to kill the bunker early on). Also, depending on the placement of the bunker, the expansion hatchery may also have taken a lot of damage, making it easy pickings for a follow up attack.
If the terran finds their attack is going poorly, they can simply retreat their units, and either cancel the partially constructed bunker, or recycle the bunker and get most of their minerals back.
I guess Blizzard decided that this harass tactic was too powerful, and added unbuildable rocks to even things out. Terran can still bunker harass, but now terran can't block melee units from exiting the main base.
Edit: Here is a vod of a pro using a bunker block back in Wings Of Liberty in TvZ.