Why does it hurt

Me and my bf try having sex for the first time but I wouldn’t let him more than two inches in cause it hurts but masturbate wit 4 inch dildo he bigger but still why does it hurt