Protein binding interactions are usually referred to by how easily the binding partner can be displaced by something other than the preferred substrate. Usually, this is in reference to the concentration of the binding partner required such that the average occupancy of the protein (in this case RAS) to the binding partner is ~ 50%.
If the affinity protein for a given binding partner is in the picomolar range, that means that it binds so tightly that very very little substrate is needed to achieve 50% occupancy. In order to interfere with RAS's preference for GTP, you would have to design something that RAS likes to bind to with even greater preference that would be able to displace GTP. This has proven quite challenging.
Other kinases, whose affinity for their substrate is not nearly as high, have been easier to design molecules that displace their endogenous ligands and hence interfere with their function.
I know it is Wiki, but the activation/deactivation section of this Page provides some insight into how RAS binds GTP and turned on, how GAP functions to help RAS hydrolyze GTP->GDP, resulting in turning off RAS downstream signalling. RAS signalling is actually a balance between Guanine nucleotide exchange factors causing RAS to drop GDP for GTP (turning RAS on) and GTPase activating proteins mentioned above (GAP).
Mutated RAS in cancer often involves a coding change such that the ability to hydrolyze GTP->GDP is mitigated, thus leaving RAS in the ON state.
For your initial question of inhibitors (and more general). Cellular signalling involves the interaction of proteins with other proteins and/or signalling molecules and/or DNA/RNA. Very generically, inhibitors interfere with this interaction.
Example: Kinases add a phosphate group to another protein, that can among other things change the affinity of that protein for its binding partners, and thus set off a downstream signalling cascade. If kinase A phosphorylates protein 1, and you inhibit kinase A from doing this, you have inhibited downstream effects from protein 1's signalling cascade.
Take a look at this picture: The two drugs in red interfere with downstream signalling cascades in B-cell receptor signalling by preventing endogenous binding/signalling events.
