If you were a keen reader of electronic text books you might have read about different voltage levels tolerated by 4000 series CMOS ... If the 3.3V part is an output and the 5V one an input ...
CMOS opened the door for many if not most of ... utilizes voltage instead of current on its Gate input, somewhat like the Base on a Bipolar Transistor, to control the output voltage.